Skip to content

chore: bump viem from 2.27.0 to 2.37.7 - #21

Open
SahilVasava wants to merge 7 commits into
mainfrom
bump-viem-2.37.7
Open

chore: bump viem from 2.27.0 to 2.37.7#21
SahilVasava wants to merge 7 commits into
mainfrom
bump-viem-2.37.7

Conversation

@SahilVasava

Copy link
Copy Markdown
Collaborator

Summary

  • Bumps viem from 2.27.0 to 2.37.7
  • Key change: removed manual authorizationList gas overhead in estimateGas — nodes now handle EIP-7702 gas natively
  • Also includes: authorizationList propagation fix on call, stricter decodeEventLog topic validation, waitForTransactionReceipt stability fix, and blockTime-aware polling (we already set pollingInterval explicitly so no behavioral change)

Includes fix for removed manual authorizationList gas overhead in
estimateGas, improved EIP-7702 authorization propagation on call,
and stricter decodeEventLog topic validation.
…#22) (#23)

encodeBinarySearchCalldata used a zero-initialized opInfo.userOpHash
when encoding CallGasLimit payloads. For accounts using executeUserOp,
this caused the simulation to run with bytes32(0) instead of the real
hash, producing incorrect gas estimates.
@SahilVasava
SahilVasava requested a review from arpan-jain April 17, 2026 16:37
arpan-jain
arpan-jain previously approved these changes Apr 17, 2026
Includes fix for removed manual authorizationList gas overhead in
estimateGas, improved EIP-7702 authorization propagation on call,
and stricter decodeEventLog topic validation.
Picks up the HyperEVM chain definition (id=999) added in viem 2.42.0,
which is required to avoid the chain-lookup collision with
wanchainTestnet (also id=999). Before this bump, getViemChain in
src/cli/handler.ts was returning Wanchain Testnet for chain id 999
because viem 2.37.x has no hyperEvm export, breaking bundle tx
submission on HyperEVM (Wanchain serialization rejected by HyperEVM RPC).

Also benefits from:
- 2.43.4: fixed getUserOperationHash for EIP-7702 UserOperations
- 2.43.6: fixed paymasterSignature encoding in toPackedUserOperation
- 2.44.4: optional assertChainId on sendTransaction

No breaking changes outside the viem/tempo subpackage, which alto
does not import. Strict tsc passes; ox's TypeScript >= 5.4 peer
requirement surfaces a warning but is informational only (build
compiles cleanly against TS 5.3.3).
# Conflicts:
#	pnpm-lock.yaml
#	src/package.json
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