All Questions
5 questions
0
votes
1
answer
41
views
Smart contract unpredictable gas for seemingly simple method
I'm having an issue where a method that seems straightforward is showing a huge amount of gas requirements. I tried to run it from the verified polygonscan UI and metamask tells me it can't estimate ...
1
vote
0
answers
27
views
I don't know why my contract have a problem. Gas estimation and Gas exceeds Problem [closed]
pragma solidity >=0.4.24 <=0.5.6;
contract Indian {
mapping (address => uint16) myGame;
address public owner;
constructor() public {
owner = msg.sender;
}
...
1
vote
0
answers
204
views
Execution erorr: Invalid opcode on estimateGas | Possible unhandled promise rejection
pragma solidity ^0.5.0;
I get invalid opcode error when trying to estimate gas needed for my transaction from react-native using the following line of code:
const gasAmount = await contract.methods
...
0
votes
1
answer
673
views
Error in Ethereum Wallet:"Couldn't estimate gas, resorting to default parameters. Transaction is likely cheaper than the estimate"
I am using ethereum wallet for deploying contracts in my private blockchain. But whenever I try to send a transaction in my ethereum wallet it shows an error that says, "Couldn't estimate gas, ...
1
vote
2
answers
1k
views
Maximum gas consumption of calling a contract method
I want to evaluate the maximum gas consumption (minimum safe gas limit that will not fail) that calling a specific contract method would consume given that I have the contract source code / byte code.
...