5 wagmi读取合约报错 但区块链浏览器上操作正常

"Slice starting at offset "224" is out-of-bounds (size: 224).

Contract Call: address: 0x91c5e421d53842A9790931dF3c6C9E5551Ca8a77 function: getOrderInfo(uint256 _index) args: (256)

Docs: https://viem.sh/docs/contract/readContract.html Version: viem@1.1.7"

直接调区块链浏览器正常

image.png

代码如下 const a = useContractRead({ ...Contract, functionName: 'getOrderInfo', args: [BigInt(256)], })

请先 登录 后评论

1 个回答

NPC.李括
请先 登录 后评论
  • 1 关注
  • 0 收藏,1914 浏览
  • 提出于 2023-08-16 21:58