`eth_estimateGas` returns too low value when value is passed to a CALL
See original GitHub issueI was previously getting out of gas
error which was resolved by following this issue. Now i installed ganache-cli@v7.0.0-beta.0
. It creates ethereum accounts on localhost if i write the following command;
ganache-cli
The accounts on local host are as follows. If i use these accounts i didn’t get out of gas error.
Ganache CLI v7.0.0-beta.0 (ganache-core: 3.0.0-beta.0)
Available Accounts
==================
(0) 0x83086809b44625886bf2481c5892c1e882f5920c
(1) 0x1870a73b1cb795abb22e19eadfdaf38caef95bf7
(2) 0x2e0cd765b452834b521c93ab50196b024e86d468
(3) 0x9cd2ed6a814c673b523ac66de105f23a9d878538
(4) 0x9450eb5ee9edf0f9d9c5d1703a6c0f9740562762
(5) 0x6ed0d10d0dbc6f56d7df0c94858f80cb358d405e
(6) 0x9126102c8a67f5d6a89701c5ea1bfa764dc4e986
(7) 0xaf7e7565e8c48e12533e68915385f451e1edbaa0
(8) 0x6de462fd093b02d98f07804288e0e877a26655c0
(9) 0x95f999fd73311ed14bfb2318e336d6148d449ceb
Private Keys
==================
(0) 5c4539b82cf105ec2a0f14624ac89f8afef1b57e502ce3536a73b2c195080bb0
(1) b72a92b9bdd61ae616af8c259c53cc8b561371efde43675976edd893298eb5fb
(2) 61ce20461dd2dd6f9c60c075573e66a05228289c73a04fd50579a8567b75ea09
(3) c289c54194c0b7b5fb7352652518c404edfe121fa4be6de09221048f05ba990e
(4) dd53b427292a10ca8d1ab764d64de9d30a3d1f7f1efdb717a287a4100e658f67
(5) f5967273d55c9af91541d3abe8cf5c0ce88b2f5bdfba49e3f86deff9bf85ef85
(6) 8649abe4a2c96e48e766807dd3e5d355151dfbd0b6fdc8cd3d1dcf19ba73dd64
(7) 0a9c79a4e6dc247242ccc8104d47357ad197b5ab1764277964c95625a49a9e4b
(8) 9a8ab7807ca7a34e0eb58f546790ce5b1db8351c5972957eebb542ced3ff7b54
(9) 5acd77d7bd6ddf15db71cdcc7749cfafab1eb179065f5ef5d7416e577cf080cb
HD Wallet
==================
Mnemonic: install bargain breeze address giggle hurdle save grab network usual obscure wide
Base HD Path: m/44'/60'/0'/0/{account_index}
Listening on localhost:8545
But now the problem is that i can not find any command for ganache-cli
to create these accounts on the wifi like we create the accounts using ganache application as follows;
Is there any way to link the ganache-cli@v7.0.0-beta.0
to the actual ganache application or is there any command on ganache-cli
to create accounts on wifi instead of local host.
My Enviroment:
- ganache-cli@v7.0.0-beta.0
- npm v6.9.0
- Node v10.16.1
- ganache application version 2.1.1
- Remix appVersion=0.7.7
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Low level question about how eth_estimateGas interacts with ...
If i call an estimateGas on the test() method, it will correctly return an error. Now, let's say i call the flipActive() method...
Read more >eth_estimateGas always fail on a specific contract - Questions
From this thread, it sounds like occasionally estimateGas has been known to return too high a value and therefore it guesses your tx...
Read more >eth_estimateGas - Alchemy Docs
Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added...
Read more >web3.eth — web3.js 1.0.0 documentation
Incorrect checksum addresses will throw an error when passed into functions. ... number : The current value of blockHeaderTimeout (default: 10 seconds) ...
Read more >web3j/web3j - Gitter
headlong v1.4.4 now passes all 1880 abi v2 test cases ... ethEstimateGas return the value different with the one call from web3js (it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ZeeshanAhmadKhalil We’ve found and (I believe) fixed the issue! Unfortunately the code is still currently in review before we can merge it into our
develop
branch. It should find it’s way into a release shortly thereafter! If you have a chance and want to test the new fix now, checkout the branchfix/gas-account-not-zero
on ganache-core.@ZeeshanAhmadKhalil, Thanks for the detailed reproduction steps! @nicholasjpaterno found the root of the issue, and it is due to a too-low gas estimation that Ganache is sending to Remix. He’s working on finding the solution now.