【发布时间】:2022-10-05 09:35:37
【问题描述】:
我正在尝试使用https://github.com/banteg/multicall.py 对区块链进行多次调用 图书馆。当我指定公共 RPC url 时,一切都按预期工作,但是当我尝试使用主网的 fork 将其切换到本地 Ganache RPC 时,我收到一个错误:
ContractLogicError: execution reverted: Incorrect number of arguments. Method \'eth_call\' requires exactly 2 arguments. Request specified 3 arguments:
我建议错误不在执行多重调用的库中,而是在 Ganache 节点中,因为除了目标之外查询完全相同。
这是运行 ganache 的命令:
ganache-cli -f https://bsc-dataseed.binance.org --chainId 56
公共节点和ganache有什么区别吗?
感谢任何建议。
标签: blockchain solidity web3 web3py ganache