Closed Madeindreams closed 3 years ago
Good morning @Madeindreams ... I'm having the same issues too even using metamask and after turning ganache to a local blockchain: EthQuery - RPC Error - Error: [ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data":{"message":"VM Exception while processing transaction: out of gas","code":-32000,"data":{"0x7...40":{"error":"out of gas","program_counter":0,"return":"0x"},"stack":"RuntimeError: VM Exception while processing transaction: out of gas\n at Function.RuntimeError.fromResults
My environment: Metamask 2.0.0 Node 14.16.0 windows 10 x64 Truffle 5.2.3 web3.js 1.2.9
Hey Chriscorp! The error messages in the case of a fork of the mainnet are often as helpfull as just saying ERROR.
It could be an error in your code or a missing view declaration. It could be anything.
So unless you can get a more explicit error it's really hard to know what is causing this error.
Break your code down in smaller part. It's easyer to debug one thing than 10.
https://gitter.im/ConsenSys/truffle?at=5ffa7e309632f63d87099576
I have a local Geth node and I fork the mainnet on it using Ganache-cli like so
I use the first provided key to import the first account that ganache returns in Metamask.
Using Remix I am able to deploy a contract. After the deployment, if I try to interact with the contract, it will revert with a nonce error. But prior to that, Remix is warning me that it will potentially fail with this message;
So I think my first contract deployment in remix was counted has 1 transaction in metamask. But I guess Ganache return none.
I also tryed to send Ether from Metamask and got an out of gas error. This should be my second transaction to get my contract to work. I don't get an error in Remix but in the advance settings of Metamask i can see this error message;
When i click on deploy in Remix. I can see that it's trying to call for estimateGas in the Geth console. And this is when it raise a warning. Also a Gas issue when trying to send ether.
Your Environment
Ganache CLI v6.11.1-beta.1 (ganache-core: 2.13.0-beta.0) Remix 0.10.7 Node v15.5.0 Windows 10 x64 WSL2 Ubuntu