All Questions
Tagged with gas-estimate contract-deployment
15 questions
0
votes
2
answers
273
views
how to verify the minimum gas fee for deploying a contract on the mainnet?
how to verify the minimum gas fee for deploying a contract on the mainnet?
my contract creation failed in Remix IDE, I choosed estimated gas fee and the process were not successfully finished, is it ...
0
votes
1
answer
417
views
Estimating Gas Cost for Smart Contract Deployment Using Foundry
I'm trying to estimate the gas cost for deploying a smart contract using Foundry. Can someone provide guidance on how to do this accurately?
0
votes
0
answers
28
views
cannot estimate gas error when deploying with solidity-create2-deployer
I continuously get the cannot estimate gas error when attempting to deploy a contract using the solidity-create2-deployer contract and I'm clueless as to where the error arises.
find my code below
...
0
votes
0
answers
19
views
Why can't the gas be estimated?
I'm trying to use another contract to give my leasingContracts unique IDs, but I can't call the function as the code crashes, and I don't understand why.
This is the contract for IDs:
// SPDX-License-...
0
votes
0
answers
23
views
Someone can help me with thist issued: Gas estimation errored with the following message (see below)
Some one can help me to solve this issue, I'm student and I try to deploy a Smart Contract for a practic, I must Deploy 3 contract, When I Try to deploy the last one it show me an error "Gas ...
0
votes
1
answer
428
views
Error while deploying smart contract on mainnet of ethereum
when I deploy a smart contract on Goerli testnet then it will easily be deployed but when I try to deploy the same contract on mainnet then it gives me this particular error even I have ethers in my ...
0
votes
1
answer
185
views
I'm trying to call a function from a deployed contract, But I'm getting the following error:
Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
execution reverted: ERC20: insufficient allowance
{
"...
1
vote
0
answers
1k
views
Hardhat estimatedGas error on smart contract deployment
I'm getting the following error when trying to deploy to BSC testnet:
Hardhat Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={"name":"...
1
vote
1
answer
4k
views
Estimate Gas For Smart Contract Always Fails
I have deployed a very simple contract to the Ethereum blockchain to be able to split a payment across two different outputs.
pragma solidity ^0.5.0;
contract MoonTrade
{
function multiSendETH( ...
1
vote
1
answer
2k
views
"Gas estimation failed" on Ropsten using MetaMask!
I'm testing a smart contract using Remix, MetaMask, Ropsten.
Yesterday I developed my contract on Ropsten network and everything goes in the right way.
Today I was developing the SAME contract code, ...
3
votes
2
answers
3k
views
Constantly getting "Gas estimation failed" error when attempting to deploy ERC20 Token contract on Rinkeby testnet
I have included the code for the contract below. The error I get when attempting to deploy in remix via metamask is:
Gas estimation errored with the following message (see below). The transaction ...
0
votes
1
answer
739
views
Invalid opcode on estimateGas
This is my contract
pragma solidity ^0.4.20;
contract Test {
struct TestStruct {
bytes32 name;
mapping(uint => address) tesMapping;
}
TestStruct[] public testStructs;
...
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....
4
votes
1
answer
624
views
Contract is sent and gets an address, but eth.getCode returns 0x
I'm trying to deploy a contract on a private blockchain network.
My solidity code has a lot of variables used in it.
The deployment does give me a contract address, however, when trying to retrieve ...
5
votes
1
answer
2k
views
How to minimize gas consumption during contract creation
I have trouble deploying a contract to the main network and I believe this is due to high gas consumption.
An earlier version of the contract worked on the main network. The current version works in ...