-
Couldn't load subscription status.
- Fork 2.2k
Closed
Labels
C-forgeCommand: forgeCommand: forgeCmd-forge-scriptCommand: forge scriptCommand: forge scriptT-bugType: bugType: bug
Milestone
Description
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 (af97b2c 2024-07-18T00:22:15.301937000Z)
What command(s) is the bug in?
forge script
Operating System
macOS (Apple Silicon)
Describe the bug
When I'm trying deploying the contract with forge script, it crashes.
Script is like:
address constant ZERO = address(0xc0b0);
address dummy = new MyContract(ZERO, ZERO);
Error message:
[⠒] Compiling...
No files changed, compilation skipped
Enter keystore password:
Script ran successfully.
## Setting up 1 EVM.
2024-07-18T03:08:39.237259Z ERROR forge_script::transaction: Failed to decode constructor arguments contract=Some("MyContract") signature=constructor(address,address) is_create2=false constructor_args=0000000000000000000000c0b0000000000000000000000000000000000000000000000000000000000000c0b0
Error:
buffer overrun while deserializing
Context:
- buffer overrun while deserializing
It looks like the constructor_args, which should be 64 bytes but 45 byte here, is incorrectly sliced.
Metadata
Metadata
Assignees
Labels
C-forgeCommand: forgeCommand: forgeCmd-forge-scriptCommand: forge scriptCommand: forge scriptT-bugType: bugType: bug
Type
Projects
Status
Completed