-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Deploy on Ropsten fails with Message "The contract code couldn't be stored, please check your gas amount" #1003
Comments
Possibly related to contract code size limit since homestead - ethereum/EIPs#170 Check out trufflesuite/ganache#674 Reply by @cgewecke :
|
@kyriediculous |
Right. Shouldn't be an issue then indeed. Have you tried removing the amount of gas that's being sent in the config file? PS: Afaik Rinkeby is POA and should be used over Ropsten which often gets rearranged. |
@tomerweisman Etherscan is suggesting that it's hitting a revert somewhere after consuming about 200k gas. It's kind of frustrating that it passes the dry run ok. . . If you have a chance could you put a log line in your deploy script and verify that the const wallet = accounts[1]; |
@cgewecke **When does the accounts array get defined? only when using ganache? ** thank you so much |
Oh good. Yes ganache defines 10, and the Wallet only defines one by default. It would be nice to fix this though because dry-run shouldn't have this kind of variance, otherwise its meaningless. |
agreed. thanks for the help |
Issue
Deploying to Ropsten using truffle and Infura works in a dry run. this is the output:
BUT, when trying to deploy to the network itself I get the following error:
The contracts I try to deploy:
2_deploy_contracts.js
I think I gave a sufficient gas limit and price for the transaction to push through...
truffle-config.js
I read almost every issue about this subject and tried so many things (among other #974)
If I needed to add anything here please let me know
I've been working on it for some time...
ANY IDEA ANYONE?
Environment
The text was updated successfully, but these errors were encountered: