Replies: 1 comment
-
|
I think you can be confident it's inclusive to both. Would be nice if the docs were explicit |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
there's an example script, says from
[blockNumber-20n, blockNumber]is getting events from last 20 blocks, but if both sides are inclusive, then it should be last 21 blocks?https://github.com/wevm/viem/blob/main/examples/logs_event-logs/index.ts#L15-L21
the doc line
https://viem.sh/docs/actions/public/getLogs#toblock is not clear either,
could someone make a doc fix to clarify on this? Thanks, 🎉
Beta Was this translation helpful? Give feedback.
All reactions