-
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
Failed to decode constructor arguments #3229
Comments
I'm also running into this issue, using The issue can be reproduced by running the IdRegistry or NameRegistry deploy scripts here using the command: It produces the error:
|
Could this be what is causing my contract etherscan verifications to fail? (I'm getting the same errors) Thanks 🙏 |
likely, |
this should be fixed now, if you encounter this again, please reopen |
confirming, fixed for me |
Encountered again:
for contracts inheriting other contract with constructors passing args like this:
|
Ty - taking another look. |
how can I repro this @radeksvarz ? |
I also ran into the same issue by deploying an Looks like something breaks during the Etherscan verification. Managed to find a quick workaroud that worked for me which is to clear Foundry output folders (i.e., |
I was also getting this error and couldn't understand why tried @codyx 's suggestion (ran reproducing the issue was easy:
|
I get the same error
on |
same issue here, trying to deploy OZ ERC1967Proxy
|
I replaced the OZ proxy with a flattened / optimised code. The issue is gone. Example: https://github.com/radeksvarz/uupsentrypoint_example Proxy: https://github.com/radeksvarz/erc1967uupsentrypoint |
another fix is just turning off optimizer in foundry.toml |
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'm getting the following error when deploying via
forge script
.This only happens when passing in an
--rpc-url
. Tested on mumbai testnet, but also anvil.I tried creating a minimum reproducible example from a completely clean repo, but couldn't get it to work. The closest I got to was using this repository:
The text was updated successfully, but these errors were encountered: