Developers Forum for XinFin XDC Network

ncode
ncode

Posted on • Updated on

[WIP] multicall3 not working

Hi,
I am using web3onboard with wagmi to interact with smart contracts on the XDC Apothem Network.

I am using a readContract Method from wagmi.
https://wagmi.sh/core/api/actions/readContract

It seems to use multicall under the hood, which is giving error.
Image description
This is the rpc call happening:
Image description

This is my code:
https://github.com/nitishpatel/random/blob/b5e1886ac510ade292a2120df62423bcf0d850cb/react/web3onboard-example/src/store/hooks/useTransaction.ts#L37

Discussion (4)

Collapse
ncode profile image
ncode Author

@mitali_blocksscan Any luck fixing it?

Collapse
ncode profile image
ncode Author

Hey, @mitali_blocksscan Thanks for looking into it! Any luck fixing it?

Collapse
0xbeny profile image
Beny

xdc.dev/0xbeny/multicall-contract-...

Pls check the updated section for temporary fix. we'll make a PR on viem/chain package to replace the addresses in some time.

Collapse
mitali_blocksscan profile image
Mitali_BlocksScan

Hey @ncode
Please give us sometime we are rectifying the issue will let you know