Closed gupadhyaya closed 3 years ago
It look like that Ganache is unable to sync blocks from Harmony node. Query the latest block number from Ganache does not change. If Ganache connects to Geth, it will always return the latest block number. I’ll debug it with ganache src code.
currently known eth_estimateGas is the method that fails ganache calculates gas using ethereum js vm implementation instead of quering RPC directly https://github.com/trufflesuite/ganache-core/blob/develop/src/chains/ethereum/ethereum/src/helpers/gas-estimator.ts#L255
fixed in this PR: https://github.com/harmony-one/harmony/pull/3837
one1yr7j2xulp5z2z54sshvzzx0yque4wwsd6xw6zq
Hi @gupadhyaya!
Since this issue has been resolved, is it okay to remove the info from the documentation here: https://docs.harmony.one/home/developers/tools/using-ganache?
I have created a PR here: https://github.com/harmony-one/docs-home/pull/42
Running harmony localnet or node using ganache-cli is broken. Could be due to this change.
This error is similar to
truffle deploy
error as reported in this post. For the truffle error, temporary work around was passing-- skip-dry-run
option or specifyingskipDryRun: true
in the truffle network config.Steps to reproduce:
ganache-cli -f http://localhost:9500 --networkId 1666700000
let web3 = new Web3(<ganache url>)
, you will get the error as follows: