All Questions
Tagged with gas-estimate contract-development
5 questions with no upvoted or accepted answers
2
votes
1
answer
571
views
Alternative solution for loops in subscription smart contract design
I am a new developer, working on a smart contract mostly for my own learning. I am developing a Smart Contract to handle subscriptions. The contract has the below features.
Subscribers can subscribe ...
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
...
1
vote
0
answers
404
views
Contract deploy estimateGas undefined
When ti try to estimate gas for my contract to deploy, I always get undefined result.
This is my code:
const toDeploy = contract.deploy({
data: '0x' + bytecode,
arguments: [[web3.utils....
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 ...
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, ...