cast
returning 'illegal abi' error when sending transactions to functions with tuples
#670
Closed
2 tasks done
Component
Cast, Other (please describe)
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.1.0 (0b6b202 2022-02-04T16:36:20.877746906+00:00)
What command(s) is the bug in?
forge send
and possibly othersOperating System
Linux
Describe the bug
cast send
used in formatseth call [<options>] <to> <sig> [<args>...]
does not correctly parse function signatures if they contain tuples. It seems this problem stems from theethers-rs
repo, specifically here.It looks like line 261 in particular would be causing the issue since is splits the calldata arguments with '(' as the delimiter in order to separate input and output args, but that would break if there are any tuples present as args.
This issue is also present in
seth
, although the error message is a little clearer here as it outputsseth-abi: error: unexpected character "(" at position 0 in "(bytes1,bytes32,uint64)"
.The text was updated successfully, but these errors were encountered: