-
Notifications
You must be signed in to change notification settings - Fork 34
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
EvmError: MemoryOOG error when deploying a contract #92
Comments
Hi, thanks for reporting this. You can avoid this error by setting the block_gas_limit configuration in your Foundry environment to a higher value, so that your script is able to run without being out of gas. After Foundry runs the script with this higher limit to create the transactions locally, it will then broadcast the transactions to your connected chain as normal. For example, you can set the following in
Side note: It looks like you are pre-deploying the implementation contracts in your |
ok,i will setup Additionally, in
|
Are you using linked libraries in your contracts? That error looks like it is caused by foundry-rs/book#1361 since we use With your For example:
|
yeah,it's good advertise to move |
In a deploy script i want to deploy 13 contrancts. Then I encountered this error [MemoryOOG] EvmError: MemoryOOG
The text was updated successfully, but these errors were encountered: