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

Allow zero bytes parsing #401

Closed
wants to merge 1 commit into from

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Nov 3, 2023

Motivation

Right now alloy-rs is not able to coerce "0x" to bytes. It leads to this foundry issue, for example

Solution

Uses winnow::ascii::hex_digit0 instead of winnow::ascii::hex_digit1 which raises error when parsing empty strings

PR Checklist

  • [ x ] Added Tests
  • Added Documentation
  • Breaking changes

@klkvr klkvr requested a review from prestwich as a code owner November 3, 2023 20:56
@klkvr klkvr closed this Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant