Skip to content

chore(ci): pin foundry to v1.8.7 (latest) - #5379

Merged
jxom merged 2 commits into
wevm:mainfrom
mmv08:chore/pin-foundry-1.8.7
Nov 2, 2026
Merged

jxom merged 2 commits into
wevm:mainfrom
mmv08:chore/pin-foundry-1.8.7

Conversation

@mmv08

@mmv08 mmv08 commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

CI pinned foundry to v1.7.1 (May 2026). Pin the latest release, v1.8.7, and update the tests that depend on Anvil's output.

Snapshot updates (Anvil output changed):

  • Receipts omit blobGasPrice on non-blob transactions.
  • eth_simulateV1 results include maxUsedGas, and the intrinsic-gas error gains an err: prefix.
  • Unknown methods return -32601 "Method not found", and unknown subscription names return a new message.
  • The unsigned raw from eth_fillTransaction carries a placeholder signature, so its hash changed.
  • After anvil_reset, fills use the reset block's base fee, which changes the writeContracts hashes and one effectiveGasPrice.
  • Anvil rejects a fill with only maxPriorityFeePerGas, so prepareTransactionRequest falls back to its own fee estimate.

Test changes:

  • Transport tests call eth_chainId instead of web3_clientVersion. They test the RPC client, not the node, and the old snapshot held the Anvil version, so it broke on every bump.
  • txpool tests look up checksummed addresses, as Anvil now returns them.
  • estimateGas with only maxPriorityFeePerGas now asserts the node's rejection.
  • The local-account insufficient-funds tests pass gas, since Anvil's estimate now caps gas by balance and fails first with another error.
  • Anvil no longer forks zkSync Era, so anvilZksync runs a local chain with chain id 324 and VITE_ANVIL_FORK_URL_ZKSYNC is gone.
  • The six traceAssetChanges tests in simulateCalls run again: v1.8.7 includes fix(anvil): handle eth_simulateV1 calls without to as contract creation foundry-rs/foundry#15784, the eth_simulateV1 fix they were skipped for.

Three local-account estimateGas tests still fail until Viem stops sending both gasPrice and maxFeePerGas from a filled request. #5378 needs to be merged first

@vercel

vercel Bot commented Nov 2, 2026

Copy link
Copy Markdown

@mmv08 is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6eaca35

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

CI pinned foundry to v1.7.1 (May 2026). Pin the latest release, v1.8.7,
and update the tests that depend on Anvil's output.

Snapshot updates (Anvil output changed):
- Receipts omit `blobGasPrice` on non-blob transactions.
- `eth_simulateV1` results include `maxUsedGas`, and the intrinsic-gas
  error gains an `err:` prefix.
- Unknown methods return -32601 "Method not found", and unknown
  subscription names return a new message.
- The unsigned `raw` from `eth_fillTransaction` carries a placeholder
  signature, so its hash changed.
- After `anvil_reset`, fills use the reset block's base fee, which changes
  the writeContracts hashes and one `effectiveGasPrice`.
- Anvil rejects a fill with only `maxPriorityFeePerGas`, so
  prepareTransactionRequest falls back to its own fee estimate.

Test changes:
- Transport tests call `eth_chainId` instead of `web3_clientVersion`.
  They test the RPC client, not the node, and the old snapshot held the
  Anvil version, so it broke on every bump.
- txpool tests look up checksummed addresses, as Anvil now returns them.
- `estimateGas` with only `maxPriorityFeePerGas` now asserts the node's
  rejection.
- The local-account insufficient-funds tests pass `gas`, since Anvil's
  estimate now caps gas by balance and fails first with another error.
- Anvil no longer forks zkSync Era, so `anvilZksync` runs a local chain
  with chain id 324 and `VITE_ANVIL_FORK_URL_ZKSYNC` is gone.
- The six `traceAssetChanges` tests in `simulateCalls` run again:
  v1.8.7 includes foundry-rs/foundry#15784, the `eth_simulateV1` fix
  they were skipped for.

Three local-account `estimateGas` tests still fail until Viem stops
sending both `gasPrice` and `maxFeePerGas` from a filled request.
@mmv08
mmv08 force-pushed the chore/pin-foundry-1.8.7 branch from 0cca4fa to d67f8fe Compare November 2, 2026 15:37
@jxom
jxom enabled auto-merge (squash) November 2, 2026 19:20
# Conflicts:
#	src/actions/public/fillTransaction.test.ts
#	src/actions/wallet/prepareTransactionRequest.test.ts
@jxom
jxom disabled auto-merge November 2, 2026 19:21
@jxom
jxom merged commit 10a40e1 into wevm:main Nov 2, 2026
25 of 32 checks passed
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.

2 participants