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
But this does not (using hexadecimal representation of uint256):
cast call 0xe7f1725e7734ce288f8367e1bb143e90bb3f0512 "pushToA((uint256,uint256,uint256)[])" "[(0x01,0x01,0x01)]" --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
Error:
Failed to parse `[(0x01,0x01,0x01)]`, expected value of type: (uint256,uint256,uint256)[]
Sorry, if this might be looking annoying - as one can always use / convert number to decimal representation at client side, but natively supporting both decimal and hexadecimal uint256 values passing seems to be very convenient.
The text was updated successfully, but these errors were encountered:
Right now dealing with either hex or numbers could be a little cumbersome—and not too far in the near future we'll migrate to alloy which might mean reworking yet again this parsing.
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
cast 0.2.0 (388c3c0 2023-04-12T00:13:21.361610000Z)
What command(s) is the bug in?
cast call
Operating System
macOS (Apple Silicon)
Describe the bug
This works (using decimal representation of
uint256
):But this does not (using hexadecimal representation of
uint256
):Sorry, if this might be looking annoying - as one can always use / convert number to decimal representation at client side, but natively supporting both decimal and hexadecimal uint256 values passing seems to be very convenient.
The text was updated successfully, but these errors were encountered: