Skip to main content

All Questions

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
John Murphy's user avatar
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":"...
AMG's user avatar
  • 11
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....
imfabio's user avatar
  • 11
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?
adam mr's user avatar
  • 141
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 ...
web3lisa's user avatar
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-...
Stefan Han's user avatar
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 ...
Willy Gonzalez's user avatar
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 ...
Afaq Ahsan's user avatar