Repository navigation
fix(chains): correct multicall3 blockCreated for nine chains - #5518
Closed
gomesalexandre wants to merge 2 commits into
Closed
gomesalexandre wants to merge 2 commits into
gomesalexandre wants to merge 2 commits into
Conversation
Core Dao had Avalanche's 11907934 copied in. Multicall3 actually landed at 6988931 (keyless deployer tx 0x07471adf...84ed1). eth_getCode on core.drpc.org and rpc.ankr.com/core is 0x at 6988930 and the bytecode at 6988931, and aggregate3 eth_call at 7000000 works on ankr. So multicall() was refusing about 4.9M blocks where the contract exists. Atleta Olympia's testnet was re-genesised after it was added. The declared contract 0x1472...7115 was created at 70742 by tx 0xba6d0d30...2b73 (default RPC receipt, plus blockscout.testnet-v2.atleta.network). eth_getCode is 0x at 70741 and code at 70742. BOB (23131), Shape, Shape Sepolia, Soneium and Soneium Minato (all 1) get Multicall3 as an OP Stack genesis preinstall. eth_getCode at 0x0 returns the bytecode on each default RPC and on drpc/alchemy, those providers serve real genesis state (fee vault 0x42..11 balance 0x0 at block 0, non-zero latest), and the keyless deployer nonce is 0. So 0, same as unichain/ink/katana. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Someone is attempting to deploy a commit to the Wevm Team on Vercel. A member of the Team first needs to authorize it. |
🦋 Changeset detectedLatest commit: 4c8e08d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
… apothem Celo Sepolia ships Multicall3 as a genesis preinstall, so blockCreated is 0. On XDC Apothem the keyless deploy at 58910314 reverted, and the bytecode first appears at block 84333000. Co-Authored-By: Claude Opus 5.5 <[email protected]>
blockCreated for Core Dao, Atleta Olympia, BOB, Shape and Soneium
Member
|
Thanks @gomesalexandre! I've carried this forward in #5581 with your commits intact. The Atleta Olympia change was dropped because the address configured there isn't Multicall3 (it has no |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix Multicall3
blockCreatedfor Core Dao, Atleta Olympia, BOB, Shape, Soneium, Celo Sepolia and XDC ApothemSeven chain definitions give a Multicall3
blockCreatedthat is later than the block where the contract appeared, and two more (added below) are wrong in either direction. Because of that,getChainContractAddressrefuses blocks where Multicall3 already exists. An explicitmulticall({ blockNumber })throwsChainDoesNotSupportContract, and a batchedcall/readContractquietly falls back to oneeth_callper read.Core Dao has Avalanche's
11_907_934, copied over when the chain was added in #1255. Multicall3 was actually deployed on Core by the keyless deployer at block6988931(tx0x07471adfe8f4ec553c1199f495be97fc8be8e0626ae307281c22534460184ed1).eth_getCodereturns0xat 6988930 and the bytecode at 6988931, on bothcore.drpc.organdrpc.ankr.com/core, and anaggregate3call at block 7000000 succeeds. That covers the ~4.9M blocks between the real deployment and block 11907934.Atleta Olympia's testnet was re-genesised after it was added. The declared contract
0x1472…7115was created at block70742(tx0xba6d0d30802ba16d48a303a8d86d9ef54e80a5dd9339a2bab0c82a65fae32b73). Both the default RPC andblockscout.testnet-v2.atleta.networkshow this, andeth_getCodereturns0xat 70741.BOB, Shape, Shape Sepolia, Soneium and Soneium Minato have Multicall3 as an OP Stack genesis preinstall, so it should be
0like Unichain, Ink and Katana.eth_getCodeat0x0returns the bytecode on each default RPC and on a second provider (drpc or Alchemy). Those providers serve real genesis state, since the0x4200…0011fee vault holds0x0at block 0 and a non-zero balance at latest. The keyless deployer's nonce is still 0 on these chains. For BOB the old value blocked its first ~23k blocks. For the others it only blocks genesis. That started with #5474, which now checks block0nagainstblockCreated.Added on 2026-11-18, two testnets with the same class of error:
Celo Sepolia also has Multicall3 as a genesis preinstall.
eth_getCodeat0x0returns the 3808-byte canonical bytecode onrpc.ankr.com/celo_sepoliaandcelo-sepolia.drpc.org, the fee vault is empty at block 0, and the keyless deployer's nonce is 0, so1becomes0.XDC Apothem goes the other way: the declared
59765389is too early. The keyless deploy at block 58910314 reverted (status 0, gas used 1000000), andeth_getCodereturns0xat 59765389 and at 84332999 and the bytecode from84333000on, on ankr, drpc andearpc.apothem.network. Block 84333000 is empty, so the code looks like it was put in at a fork. Before this, a multicall at any block in between hit an empty address. #4753 reported the missing code on Apothem back in June.Like #5512, this only changes data, so it adds no test.
getChainContractAddress.test.tsalready covers the boundary.🤖 Generated with Claude Code