Skip to content

fix(chains): correct xdcTestnet (XDC Apothem) multicall3 address#4753

Open
AnilChinchawale wants to merge 1 commit into
wevm:mainfrom
AnilChinchawale:fix/xdc-apothem-multicall3
Open

fix(chains): correct xdcTestnet (XDC Apothem) multicall3 address#4753
AnilChinchawale wants to merge 1 commit into
wevm:mainfrom
AnilChinchawale:fix/xdc-apothem-multicall3

Conversation

@AnilChinchawale

Copy link
Copy Markdown

Summary

Fixes the multicall3 contract address on xdcTestnet (XDC Apothem, chainId 51). The current entry points to the canonical 0xca11…ca11, but Multicall3 is not deployed at that address on Apothem, so client.multicall / useReadContracts fail on this chain.

Evidence

eth_getCode for the currently-listed address returns 0x (no code) on three independent Apothem RPCs:

RPC eth_getCode(0xca11…ca11)
https://rpc.apothem.network 0x (no code)
https://erpc.apothem.network 0x (no code)
https://apothem.xdcrpc.com 0x (no code)

(For contrast, the xdc mainnet entry's multicall3 0x0B1795cc… is correct and has code — only the testnet entry is wrong.)

Fix

Points xdcTestnet.contracts.multicall3 at a deployed Multicall3 instance:

  • address: 0x7937b3878860eb3CDA14360cEaaa11a9646d941B
  • blockCreated: 83401816

This is the standard Multicall3 creation bytecode (from the canonical mds1/multicall deployment transaction), deployed via a normal contract creation since the canonical keyless deployer cannot be used on new chains (its key is compromised, per the mds1/multicall README). The deployed runtime is the standard Multicall3 (3808 bytes) and is functional — getBlockNumber() and getCurrentBlockTimestamp() return correct values on Apothem.

Notes

Address is checksummed. Changeset (patch) included.

The xdcTestnet (chainId 51) multicall3 pointed to the canonical
0xca11…ca11, which has no deployed code on Apothem (verified via
eth_getCode on rpc.apothem.network, erpc.apothem.network and
apothem.xdcrpc.com), so multicall() failed there. Updated to a
deployed Multicall3 (standard bytecode) at
0x7937b3878860eb3CDA14360cEaaa11a9646d941B, block 83401816.
@changeset-bot

changeset-bot Bot commented Jun 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5003cb2

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

This PR includes changesets to release 1 package
Name Type
viem 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

@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

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

A member of the Team first needs to authorize it.

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