File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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
2121import { 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 );
You can’t perform that action at this time.
0 commit comments