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
15
15
16
16
## Usage
17
17
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 ` :
19
19
20
20
``` typescript
21
21
import { HttpHandler , RpcClient } from ' casper-js-sdk' ;
@@ -26,16 +26,16 @@ import { Parser } from '@make-software/ces-js-parser';
26
26
27
27
const rpcClient = new RpcClient (rpcHandler );
28
28
29
- const transaction = await rpcClient .getTransactionByDeployHash (
30
- ' c1bb9ae27877f5ecf4ef71307e7ee3c403bcace065565c3645b81ec0a9bc8978'
31
- );
32
-
33
29
const parser = await Parser .create (rpcClient , [
34
- ' 0640eb43bd95d5c88b799862bc9fb42d7a241f1a8aae5deaa03170a27ee8eeaa '
30
+ ' 333f0e776995a27ad8502e29b141b875951f92fe6b61329a59f1f875ef48e16a '
35
31
]);
36
32
33
+ const transaction = await rpcClient .getTransactionByTransactionHash (
34
+ ' 1592814db95151bb9366112dea6e10fe5d8043ba2b1efd28545a0b6e53839a70'
35
+ );
36
+
37
37
const events = parser .parseExecutionResult (
38
- deploy . execution_results [ 0 ]. result as ExecutionResult
38
+ transaction . executionInfo ! . executionResult ,
39
39
);
40
40
41
41
events .forEach (console .log );
You can’t perform that action at this time.
0 commit comments