Skip to content
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" when running script #7144

Closed
2 tasks done
chlwys opened this issue Feb 15, 2024 · 2 comments · Fixed by #7165
Closed
2 tasks done

"Failed to decode constructor arguments" when running script #7144

chlwys opened this issue Feb 15, 2024 · 2 comments · Fixed by #7165
Labels
T-bug Type: bug

Comments

@chlwys
Copy link

chlwys commented Feb 15, 2024

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (3cdee82 2024-02-15T00:19:38.655803000Z)

What command(s) is the bug in?

forge script

Operating System

macOS (Apple Silicon)

Describe the bug

Similar issue to #6571. This only broke with 3cdee82 – the nightly release from the day before fd87629 works fine

Havent been able to isolate it specifically, and the current optimism build doesn't trigger the bug.

For context: the script running is used to deploy around 200 contracts with about 1.5k transactions. Will update if I manage to get it into a sample repo

Error message:

2024-02-15T21:48:11.162433Z ERROR forge::cmd::script::transaction: Failed to decode constructor arguments contract=Some("AddressComponent") signature=constructor(address,uint256) is_create2=false constructor_args=90b9317c2b3be33c164621cf9cae64736f6c63430008110033000000000000000000000000610178da211fef7d417bc0e6fed39f05609ad788

@chlwys chlwys added the T-bug Type: bug label Feb 15, 2024
@DaniPopes
Copy link
Member

fd87629...3cdee82

Either #7108 or #7109

Are you able to reproduce on every run?

If you can't get a minimal repro, could you share the full logs with RUST_LOG=debug,evm::traces=trace?

@chlwys
Copy link
Author

chlwys commented Feb 18, 2024

@DaniPopes managed to reproduce it here. Note that it only doesn't work when broadcasting to a node

https://github.com/chlwys/foundry_decode_constructor_reproduction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants