-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Wrong GAS estimation #2234
Comments
I've switched to
In any case it is not sufficient and will run into |
Hi guys I reach the correct amount of GAS needed for the above How I reach the correct estimation?All the above tries were made using I've tried to run the test on a The same error occurs when I tried to run the estimation directly on the parity console creating the contract instance and running the estimateGas method with web3. Writing down it manually makes me notice that the transaction object So I only changed this line Conclusion
Feel free to close the issue or go deeper investigating it. |
@andreafspeziale the issue looks to be a couple of things:
Parity's behavior seems more desirable than Ganache's, so we're working on a change that will align ganache-core's |
@davidmurdoch Thanks for the inputs! Plus I found another interesting thing. |
Issue
Idon't know if it is the right place where report it.
My ERC20
transfer
gas estimation report a wrong number.Steps to Reproduce
MockToken.sol
truffle-config.js
test.js
yarn truffle compile
yarn ganache-cli -p 7545 -i 47 -l 4700000
yarn truffle test
Expected Behavior
The transfer call will execute without any problem.
Actual Results
Error: Returned error: VM Exception while processing transaction: out of gas
Environment
node --version
):v10.16.0
npm --version
):6.10.0
wrong-gas-estimation.zip
The text was updated successfully, but these errors were encountered: