-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Obscure error messaging when running script with --verify #3242
Comments
looks like the linking step is the root cause for this, are you using only libraries that are in the project or something at a specific address? |
I'm not using any libraries with public functions. I'm working with already deployed contracts in my script, forking from mumbai. The |
do you have the https://book.getfoundry.sh/reference/config/solidity-compiler#libraries |
That did the trick for me, thank you very much. It was previously just not present in the config. |
I'll keep this open to improve the error message(s) |
Interestingly it appeared again. I played around a bit again and removed the |
hmm, will try to reproduce this, is this public by any chance? |
Yes, here: https://github.com/0xPhaze/gang-war/tree/198462993ade7cd4f578904da363454edb2a8e33
Though because of the setup scripts, it will think it has successfully deployed and you'll have to run Edit: can just prepend |
Following up here. This seems to occur when I add more functions (or any code). If I delete some code, I can deploy without an error (and I'm pretty sure it does not have anything to do with "linking", unless I misunderstand that word). Could this then simply be when the max code size is reached? Did the error messages get messed up? Edit: Perhaps ignore what I just wrote there (noticed that I was on an older version that didn't display the message). Just want to mention that this is still very much a real issue and currently is entirely hindering me from deploying in a specific repository. Got a friend to reproduce and he is able to run the scripts without any issues. For me the problem persists, even after re-installing foundry, cleaning, changing the config... |
Fixed in gakonst/ethers-rs#1743 |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (359dd77 2022-09-15T00:04:51.833948Z)
What command(s) is the bug in?
forge script
Operating System
macOS (Apple Silicon)
Describe the bug
I was getting this weird error message.
![image](https://user-images.githubusercontent.com/103113487/190814702-64b5c7c4-cdf9-4383-b2cc-195d0a9e2bdc.png)
It took me a while to pin it down to using
forge script --verify
while broadcasting, but not generating any transactions. Removing the--verify
allowed me to see the message: "no transactions generated"The text was updated successfully, but these errors were encountered: