banteg / multicall.py

aggregate results of multiple smart contract calls into one
MIT License
251 stars 108 forks source link

Ganache BSC Incorrect number of arguments. #48

Closed T1murKO closed 1 year ago

T1murKO commented 2 years ago

Running multi call query to local ganache chain raises

ContractLogicError: execution reverted: Incorrect number of arguments. Method 'eth_call' requires exactly 2 arguments. Request specified 3 arguments:

Common public BSC url works well. Single call works well with local ganache.

Command to run ganache:

ganache-cli -f https://bsc-dataseed.binance.org --chainId 56

At first I suggested the problem is somewhere with ganache, but I've managed to perform multicall with https://github.com/NFEL/eth_muticall repo using local ganache.

T1murKO commented 2 years ago

Solved. Had to specify state_override_code param to remove extra argument.