Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: italianSCARP4 on September 14, 2020, 11:56:09 PM



Title: Contract Deployment Failed - MetaMask
Post by: italianSCARP4 on September 14, 2020, 11:56:09 PM
Hello everyone.
I have a problem. I cannot make a contract with Ethereum.
After clicking on Deploy (in Remix), opening MetaMask and confirming the transaction, the error message appears:

"Deployment Agreement
Remix.ethereum.org failed "
"very low intrinsic gas"

I tried several gas rates, inserted even more than https://ethgasstation.info suggests.

https://i.pinimg.com/originals/66/67/cd/6667cdff86c64ec3167a744194545366.png

Would you know how to help me with this?


Title: Re: Contract Deployment Failed - MetaMask
Post by: Bttzed03 on September 15, 2020, 12:40:14 AM
Try this formula in computing the transaction fee when deploying contract.

Intrinsic value/gas limit (currently at 21,000)
+
Fee for all bytes (No. of bytes * 68 gas)

Give us an update if it still fails or if it worked.


Title: Re: Contract Deployment Failed - MetaMask
Post by: italianSCARP4 on September 17, 2020, 01:06:06 AM
Try this formula in computing the transaction fee when deploying contract.

Intrinsic value/gas limit (currently at 21,000)
+
Fee for all bytes (No. of bytes * 68 gas)

Give us an update if it still fails or if it worked.

Intrinsic value: $ 364,87
gas limit: 21.000
No. of bytes: 22,7 KB

(364,87/21.000)+(22.700*68*(10^-9))
= 0,01884 eth


Would it be this?
So should I pay this fee to see the transaction complete ??

I tried again with this 0.0188 eth rate. Firstly redoing the previous transaction with this new rate of 0.0188, but failed again. Then I redid the entire implementation from scratch, but it failed again.
https://i.pinimg.com/originals/85/a0/60/85a0600711efa6aba37a5a9cd9db6498.png
https://i.pinimg.com/originals/43/9f/cd/439fcdb348911d3c9a67030ff83e70df.png



With 0.03255 eth it also failed..
https://i.pinimg.com/originals/40/95/a6/4095a6b40ddcfd9fefbeb20d6427472c.png


Title: Re: Contract Deployment Failed - MetaMask
Post by: Bttzed03 on September 17, 2020, 11:35:22 AM
^ Apologies for the confusion and for the incomplete explanation. I meant to say use the formula I gave in computing for the "intrinsic gas" value only.

As you may know, the default "gas limit" is set at 21,000. From there, you need to add the gas for every byte of data (*4 for zero bytes; *68 for non-zero bytes). You might need to add another 32,000 [1].

Once you're done with that, deploy using the gas price recommended by ethgasstation or etherscan.


1. https://medium.com/coinmonks/ethereum-interview-questions-part-1-99cfc959526e



Title: Re: Contract Deployment Failed - MetaMask
Post by: blue Snow on September 17, 2020, 12:15:48 PM
Try use gas limit and gas price by default