Skip to content

Commit db0d309

Browse files
fix: Adjust docs (#32)
1 parent c38288f commit db0d309

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The library is built on top of the [casper-js-sdk](https://github.com/casper-eco
1515

1616
## Usage
1717

18-
Here is an example of parsing CES events using `ces-js-parser` from a real Testnet deploy loaded with `casper-js-sdk`:
18+
Here is an example of parsing CES events using `ces-js-parser` from a real Integration net transaction loaded with `casper-js-sdk`:
1919

2020
```typescript
2121
import { HttpHandler, RpcClient } from 'casper-js-sdk';
@@ -26,16 +26,16 @@ import { Parser } from '@make-software/ces-js-parser';
2626

2727
const rpcClient = new RpcClient(rpcHandler);
2828

29-
const transaction = await rpcClient.getTransactionByDeployHash(
30-
'c1bb9ae27877f5ecf4ef71307e7ee3c403bcace065565c3645b81ec0a9bc8978'
31-
);
32-
3329
const parser = await Parser.create(rpcClient, [
34-
'0640eb43bd95d5c88b799862bc9fb42d7a241f1a8aae5deaa03170a27ee8eeaa'
30+
'333f0e776995a27ad8502e29b141b875951f92fe6b61329a59f1f875ef48e16a'
3531
]);
3632

33+
const transaction = await rpcClient.getTransactionByTransactionHash(
34+
'1592814db95151bb9366112dea6e10fe5d8043ba2b1efd28545a0b6e53839a70'
35+
);
36+
3737
const events = parser.parseExecutionResult(
38-
deploy.execution_results[0].result as ExecutionResult
38+
transaction.executionInfo!.executionResult,
3939
);
4040

4141
events.forEach(console.log);

0 commit comments

Comments
 (0)