-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User bug: truffle migration fails #1415
Comments
It looks like you're deploying to Kovan (https://github.com/platocrat/eth-dapp/blob/fix/deployment/truffle%20project/truffle-config-ovm.js#L9-L19). There is a known problem here. trufflesuite/truffle#4217 |
running into exact same problem here, tried to specify gas parameter for the deployer and still no luck, it is weird because I'm explicitly specifying a value for gas limit in tx options, but Truffle is still saying |
Was trying to figure this out, what surprised me was, when I did a clean start, i.e.
I'm now getting this same error, while it used to succeed two days ago. |
and this replicates consistently on Truffle 5.4.9 and 5.3.2 |
Found that manually setting gas: 0 actually gets around this issue and makes some transactions succeed, now I have a new problem, when deploying a new contract, I got |
The L2 gas too low is also coming up on remix and hardhat. It's not exclusive to truffle. |
We're fixing this in the |
After latest Truffle version 5.4.11 pulled in trufflesuite/truffle#4296 which would call eth_estimateGas for gas limit, the error now becomes the following:
|
Setting a gas limit manually with Truffle 5.4.11 also fails: If I set gas limit to 4999999, I get
If I set gas limit to 4000000, I get |
We recently upgraded the optimistic ethereum kovan deployment which should solve this problem |
Should be fixed on Optimistic Kovan. I'm going to close this issue. I highly recommend trying Truffle out with OP Kovan and confirming that everything is working as expected! |
Describe the bug
Tried to debug a user's truffle migration script but was unsuccessful.
The error that we both ran into when attempting to run the migration script was:
To Reproduce
Steps to reproduce the behavior:
https://github.com/platocrat/eth-dapp.git && git checkout fix/deployment
cd ./truffle\ project/
yarn
yarn truffle compile --config truffle-config-ovm.js
yarn truffle migrate --config truffle-config-ovm.js
Expected behavior
Since the setup of this project is quite similar to Optimism's Truffle tutorial, migrations should deploy contracts without errors.
System Specs:
Additional context
Reference to the changes i made to their repository to run the migrations scriptIgnore this since they have since made their repository private :rip:The text was updated successfully, but these errors were encountered: