From 5003cb20f46a32e37a7aefb23743fd333e1fe4ac Mon Sep 17 00:00:00 2001 From: anilchinchawale Date: Mon, 22 Jun 2026 22:56:08 +0530 Subject: [PATCH 1/2] fix(chains): correct xdcTestnet (XDC Apothem) multicall3 address MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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/xdc-apothem-multicall3.md | 5 +++++ src/chains/definitions/xdcTestnet.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/xdc-apothem-multicall3.md diff --git a/.changeset/xdc-apothem-multicall3.md b/.changeset/xdc-apothem-multicall3.md new file mode 100644 index 0000000000..18ba8ea80d --- /dev/null +++ b/.changeset/xdc-apothem-multicall3.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Fixed the `xdcTestnet` (XDC Apothem) `multicall3` address. The previous entry pointed to the canonical `0xca11…ca11`, which has no deployed code on Apothem (verified via `eth_getCode` on multiple RPCs), so `multicall` calls failed. Updated to a deployed Multicall3 at `0x7937b3878860eb3CDA14360cEaaa11a9646d941B`. diff --git a/src/chains/definitions/xdcTestnet.ts b/src/chains/definitions/xdcTestnet.ts index 5285624599..d621eeb646 100644 --- a/src/chains/definitions/xdcTestnet.ts +++ b/src/chains/definitions/xdcTestnet.ts @@ -19,8 +19,8 @@ export const xdcTestnet = /*#__PURE__*/ defineChain({ }, contracts: { multicall3: { - address: '0xca11bde05977b3631167028862be2a173976ca11', - blockCreated: 59765389, + address: '0x7937b3878860eb3CDA14360cEaaa11a9646d941B', + blockCreated: 83401816, }, }, testnet: true, From 8550096d0140bfdf0bbd66c92fd32389c3c42f1c Mon Sep 17 00:00:00 2001 From: jxom <7336481+jxom@users.noreply.github.com> Date: Fri, 26 Jun 2026 20:38:30 +1000 Subject: [PATCH 2/2] fix(chains): remove `xdcTestnet` multicall3 --- .changeset/xdc-apothem-multicall3.md | 2 +- src/chains/definitions/xdcTestnet.ts | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.changeset/xdc-apothem-multicall3.md b/.changeset/xdc-apothem-multicall3.md index 18ba8ea80d..9e09d994df 100644 --- a/.changeset/xdc-apothem-multicall3.md +++ b/.changeset/xdc-apothem-multicall3.md @@ -2,4 +2,4 @@ "viem": patch --- -Fixed the `xdcTestnet` (XDC Apothem) `multicall3` address. The previous entry pointed to the canonical `0xca11…ca11`, which has no deployed code on Apothem (verified via `eth_getCode` on multiple RPCs), so `multicall` calls failed. Updated to a deployed Multicall3 at `0x7937b3878860eb3CDA14360cEaaa11a9646d941B`. +Removed the invalid `xdcTestnet` Multicall3 contract metadata. diff --git a/src/chains/definitions/xdcTestnet.ts b/src/chains/definitions/xdcTestnet.ts index d621eeb646..7ba620dcc7 100644 --- a/src/chains/definitions/xdcTestnet.ts +++ b/src/chains/definitions/xdcTestnet.ts @@ -17,11 +17,5 @@ export const xdcTestnet = /*#__PURE__*/ defineChain({ url: 'https://testnet.xdcscan.com', }, }, - contracts: { - multicall3: { - address: '0x7937b3878860eb3CDA14360cEaaa11a9646d941B', - blockCreated: 83401816, - }, - }, testnet: true, })