Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to encode empty bytes ("0x") #6211

Closed
2 tasks done
Thegaram opened this issue Nov 3, 2023 · 2 comments · Fixed by alloy-rs/core#400
Closed
2 tasks done

Unable to encode empty bytes ("0x") #6211

Thegaram opened this issue Nov 3, 2023 · 2 comments · Fixed by alloy-rs/core#400
Assignees
Labels
T-bug Type: bug

Comments

@Thegaram
Copy link

Thegaram commented Nov 3, 2023

Component

Cast

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (1c7bf46 2023-11-03T13:18:06.065760000Z)

What command(s) is the bug in?

cast calldata, cast abi-encode, cast send

Operating System

macOS (Apple Silicon)

Describe the bug

Possible regression, worked well before I updated yesterday using foundryup.

$ cast calldata "foo(bytes memory)" "0x"
Error: 
parser error:
0x
   ^


Context:
- parser error:
0x
   ^
@Thegaram
Copy link
Author

Thegaram commented Nov 4, 2023

Thanks, when is this change expected to make its way into foundry?

@mattsse
Copy link
Member

mattsse commented Nov 4, 2023

ref #6214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
None yet
3 participants