0

I get Error: The contract code couldn't be stored, please check your gas amount. whenever I deploy to any test network (rinkeby, ropsten) or the live network. Deploy to a local Ganache works perfect.

According to other SE, GH and Medium posts, I realize this doesn't necessarily means I'm lacking gas, rather that the deployed EVM byte code is too large.

I'm using Truffle of course.

How can I tell how large the deployed code is???

0

Found the answer by chance in a github thread . Apparently the constructor would fail and it simply that the error message is so misleading!

A screenshot of the relevant error and solution from the linked thread:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.