You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Above works fine, but if there is an extra parameter after the struct array it fails:
cast abi-encode "move(((address,address,address,address,uint256),uint256)[],address)" "[((0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,1000),10000)],0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
Error: Could not ABI encode the function and arguments. Did you pass in the right types?
Error
parser error:
[((0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,1000),10000)],0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
The text was updated successfully, but these errors were encountered:
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge Version: 1.0.0-stable Commit SHA: e144b82 Build Timestamp: 2025-02-13T20:02:34.979686000Z (1739476954) Build Profile: maxperf
What version of Foundryup are you on?
foundryup: 1.0.1
What command(s) is the bug in?
cast abi-encode
Operating System
macOS (Apple Silicon)
Describe the bug
Above works fine, but if there is an extra parameter after the struct array it fails:
The text was updated successfully, but these errors were encountered: