【问题标题】:Difference between Ganache local blockchain and public BSC node?Ganache本地区块链和公共BSC节点之间的区别?
【发布时间】: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


    【解决方案1】:

    我想你可以在这个link找到答案

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-04-04
      • 2016-11-11
      • 2011-06-18
      • 1970-01-01
      • 2012-09-02
      • 2014-08-22
      • 2012-06-25
      • 1970-01-01
      相关资源
      最近更新 更多