parser error when using cast
and struct of arrays containing bytes params
#6998
Labels
T-bug
Type: bug
cast
and struct of arrays containing bytes params
#6998
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (84d9842 2024-02-02T00:19:34.098872000Z)
What command(s) is the bug in?
cast send
Operating System
macOS (Apple Silicon)
Describe the bug
hi!
i'm trying to execute this function, which receives an array of a struct which contains several params including some
bytes
ones.cast send --private-key $PRIVATE_KEY $CONTRACT "handleOps((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)[],address)" "[(0x0000000000000000000000000000000000000000,0,'0x1','0x1',0,0,0,0,0,'0x1','0x1')]" $PUBLIC_KEY --rpc-url $RPC_URL
this is what i'm receiving:
i noticed that if i try removing all the
bytes
params and sending it like this:"handleOps((address,uint256,uint256,uint256,uint256,uint256,uint256)[],address)" "[(0x0000000000000000000000000000000000000000,0,0,0,0,0,0)]"
it also fails but with a different error which makes me think that the issue is on the
bytes
params.either i'm not passing them correctly or there's something wrong.
if i try removing all of the params which are not
bytes
, sending it like this:"handleOps((bytes,bytes,bytes,bytes)[],address)" "[('0x1','0x1','0x1','0x1')]"
i'm again receiving the 1st error:
thanks!
The text was updated successfully, but these errors were encountered: