-
Notifications
You must be signed in to change notification settings - Fork 14
Error: migrate:ovm - L2 gas limit too low: 0, use at least 100000 #18
Comments
Hi again @jensendarren. :) Unfortunately I'm aware of this issue and actively working to solve it. You can try to set Does the local docker testnet give you an error as well, or are you able to deploy there to test out your project? I've been working on the Kovan piece but will be checking that part of it as well. Thanks so much for your patience as I figure this issue out! |
Hi @fainashalts, Thank you again for your support. I tried with a The local Docker testnet works fine, by the way, and I am able to deploy the contract there and interact with it without any issues. Many thanks! |
I notice that Truffle just released version 5.4.11 which I thought might fix this issue. However, after upgrading Truffle to this version, I still experienced the same issue. After some trial and error, I did manage to get this working and I have deployed the SimpleStore contract to the Optimistic Kovan network. There were two things I needed to do.
Perhaps I am mistaken but I had thought the version 5.4.11 release of truffle fixed this issue? Either way, I hope this solution helps others to deploy onto Optimistic Kovan should they want to! |
HI @jensendarren this is interesting, thank you for bringing it up! The release last week should have ensured that gas estimation occurs, thus obviating the need for I will update the readme for this box to let people know about the |
Thank you @fainashalts. So I just tried this out again and I removed both of the modifications that I mentioned previously and I ran the deployment and it works every time. I did not change anything else, and am still using Truffle version |
Closing this since it's a bit stale, glad to hear this issue was resolved! |
Overview
When running the migration to ovm command
npm run migrate:ovm --network=optimistic_kovan
there is the following error returned:L2 gas limit too low: 0, use at least 100000
Review
I notice in this project README that "to bypass this error, you may need to increase the gas value in the optimistic_kovan network configuration in truffle-config.ovm.js to the value the error indicates. Gas price should be set at the transaction level, like so: { gasPrice: 15000000 }."
I have tried doing this, as well as various combinations thereof, and I've also dug into the reported issue in Truffle here. However, I've so far not been able to deploy the
SimpleStorage
contract to Kovan Optimism.Any advice on the settings to use to get around this issue would be appreciated! Many thanks.
The text was updated successfully, but these errors were encountered: