Skip to content

Commit fa0b2d2

Browse files
committed
fix multicall
1 parent ef3594b commit fa0b2d2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/server-extension/morpho.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@ function getViemClient(chainId: number) {
3535
}
3636
if (chainId === hyperEvm.id) {
3737
const rpc = process.env.RPC_HYPEREVM_ENDPOINT ?? 'https://rpc.hyperliquid.xyz/evm'
38-
return createPublicClient({ chain: hyperEvm, transport: http(rpc) })
38+
return createPublicClient({
39+
chain: {
40+
...hyperEvm,
41+
contracts: { multicall3: { address: '0xcA11bde05977b3631167028862bE2a173976CA11' as const } },
42+
},
43+
transport: http(rpc),
44+
})
3945
}
4046
throw new Error(`Unsupported chainId: ${chainId}. Supported: ${mainnet.id}, ${base.id}, ${hyperEvm.id}`)
4147
}

0 commit comments

Comments
 (0)