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

Implement is_zero method for U64HexOrNumber #478

Merged
merged 1 commit into from
Apr 7, 2024

Conversation

tcoratger
Copy link
Contributor

Solution

Implement is_zero method for U64HexOrNumber.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this could be useful when used in manual serde impls

@mattsse mattsse merged commit 89f14f9 into alloy-rs:main Apr 7, 2024
18 checks passed
@prestwich
Copy link
Member

i believe this is redundant code, as ruint uints support deserializing from number without any typewrapping or decoration

serde helpers were not examined when porting from ethers so there have been a few redundant things 😅

@prestwich
Copy link
Member

@prestwich
Copy link
Member

on consideration, we might want to rename the helpers something like u64_via_ruint to clarify behavior

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.

3 participants