-
Notifications
You must be signed in to change notification settings - Fork 193
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(common): use pending block tag in tx queue #3073
Conversation
🦋 Changeset detectedLatest commit: 97cb87e The changes in this PR will be included in the next version bump. This PR includes changesets to release 27 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
debug("sending tx to", request.to, "with nonce", nonce); | ||
return await getAction(client, viem_sendTransaction, "sendTransaction")(params); | ||
return await getAction(client, viem_sendTransaction, "sendTransaction")(params as never); |
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.
viem types don't like blockTag
here, but it does make it through to the eth_estimateGas
RPC call, so I'm hoping to get this fixed upstream
>( | ||
client: Client<Transport, chain, account>, | ||
request: SendTransactionParameters<chain, account, chainOverride>, | ||
request: SendTransactionParameters<chain, account, chainOverride, request>, |
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.
these changes align with viem's type signature (forgot to do this last version bump)
we refactored these actions in #3043, but missed that
estimateGas
is not called withpending
block tag by default (but was what we used before)