You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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