Skip to content
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

Merged
merged 7 commits into from
Sep 1, 2024
Merged

Conversation

holic
Copy link
Member

@holic holic commented Aug 27, 2024

we refactored these actions in #3043, but missed that estimateGas is not called with pending block tag by default (but was what we used before)

Copy link

changeset-bot bot commented Aug 27, 2024

🦋 Changeset detected

Latest commit: 97cb87e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 27 packages
Name Type
@latticexyz/common Patch
@latticexyz/block-logs-stream Patch
@latticexyz/cli Patch
@latticexyz/config Patch
@latticexyz/dev-tools Patch
@latticexyz/explorer Patch
@latticexyz/faucet Patch
@latticexyz/protocol-parser Patch
@latticexyz/query Patch
@latticexyz/store-indexer Patch
@latticexyz/store-sync Patch
@latticexyz/store Patch
@latticexyz/world-modules Patch
@latticexyz/world Patch
mock-game-contracts Patch
@latticexyz/stash Patch
ts-benchmarks Patch
@latticexyz/react Patch
@latticexyz/world-module-metadata Patch
@latticexyz/abi-ts Patch
create-mud Patch
@latticexyz/gas-report Patch
@latticexyz/recs Patch
@latticexyz/schema-type Patch
solhint-config-mud Patch
solhint-plugin-mud Patch
@latticexyz/utils Patch

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

@holic holic changed the title fix(common): use pending block tag in tx queue fix(common): use pending block tag in tx queue Aug 27, 2024
@holic holic marked this pull request as ready for review August 27, 2024 14:58
@holic holic requested a review from alvrs as a code owner August 27, 2024 14:58
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);
Copy link
Member Author

@holic holic Aug 27, 2024

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>,
Copy link
Member Author

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)

@holic holic merged commit c0764a5 into main Sep 1, 2024
14 checks passed
@holic holic deleted the holic/tx-queue-blockTag branch September 1, 2024 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant