Skip to content

Commit

Permalink
Update cast-logs.md (#1308)
Browse files Browse the repository at this point in the history
Fix: Correct errors in cast logs example
  • Loading branch information
Rm1210 authored Sep 20, 2024
1 parent 1d35151 commit 17ff885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reference/cast/cast-logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ If using a signature, remaining arguments must be in their ordinary form. If usi

1. Get logs using a signature:
```sh
cast logs --from-block 15537393 --to-block latest 'Transfer (address indexed from, address indexed to, uint256 value)' 0x2e8ABfE042886E4938201101A63730D04F160A82
cast logs --from-block 15537393 --to-block latest 'Transfer (address indexed from, address indexed to, uint256 value)' --address 0x2e8ABfE042886E4938201101A63730D04F160A82
```
2. Get logs using a topic:
```sh
cast logs --from-block 15537393 --to-block latest 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef 0x0000000000000000000000002e8abfe042886e4938201101a63730d04f160a82
cast logs --from-block 15537393 --to-block latest 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef --address 0x0000000000000000000000002e8abfe042886e4938201101a63730d04f160a82
```

### SEE ALSO
Expand Down

0 comments on commit 17ff885

Please sign in to comment.