-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(cli): set stateBlock to latest block instead of the deploy block #3424
base: main
Are you sure you want to change the base?
Conversation
|
c218808
to
8d42545
Compare
@@ -41,9 +41,12 @@ export async function getWorldDeploy( | |||
throw new Error("could not find `HelloWorld` or `HelloStore` event"); | |||
} | |||
|
|||
// Fetch latest block to set the range of blocks for logs retrieval. | |||
const stateBlock = await getBlock(client, { blockTag: "latest" }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe move this up to dedupe the two calls above to the latest block?
8d42545
to
e2659c9
Compare
@@ -24,9 +24,12 @@ export async function getWorldDeploy( | |||
|
|||
debug("looking up world deploy for", address); | |||
|
|||
// Fetch latest block to set the range of blocks for logs retrieval. | |||
const stateBlock = await getBlock(client, { blockTag: "latest" }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's one more usage above this too!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm blind 🙈
e2659c9
to
a441683
Compare
No description provided.