Bitcoin Forum
May 04, 2024, 11:43:31 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Contract Deployment Failed - MetaMask  (Read 58 times)
italianSCARP4 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
September 14, 2020, 11:56:09 PM
 #1

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?
1714866211
Hero Member
*
Offline Offline

Posts: 1714866211

View Profile Personal Message (Offline)

Ignore
1714866211
Reply with quote  #2

1714866211
Report to moderator
1714866211
Hero Member
*
Offline Offline

Posts: 1714866211

View Profile Personal Message (Offline)

Ignore
1714866211
Reply with quote  #2

1714866211
Report to moderator
1714866211
Hero Member
*
Offline Offline

Posts: 1714866211

View Profile Personal Message (Offline)

Ignore
1714866211
Reply with quote  #2

1714866211
Report to moderator
Each block is stacked on top of the previous one. Adding another block to the top makes all lower blocks more difficult to remove: there is more "weight" above each block. A transaction in a block 6 blocks deep (6 confirmations) will be very difficult to remove.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Bttzed03
Legendary
*
Offline Offline

Activity: 2114
Merit: 1149


https://bitcoincleanup.com/


View Profile
September 15, 2020, 12:40:14 AM
 #2

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.
italianSCARP4 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
September 17, 2020, 01:06:06 AM
Last edit: September 17, 2020, 01:16:32 AM by italianSCARP4
 #3

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
Bttzed03
Legendary
*
Offline Offline

Activity: 2114
Merit: 1149


https://bitcoincleanup.com/


View Profile
September 17, 2020, 11:35:22 AM
 #4

^ 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

blue Snow
Legendary
*
Offline Offline

Activity: 1498
Merit: 1024


#SWGT CERTIK Audited


View Profile WWW
September 17, 2020, 12:15:48 PM
 #5

Try use gas limit and gas price by default

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!