Skip to content

Conversation

@lutter
Copy link
Collaborator

@lutter lutter commented Dec 1, 2025

Return an error instead

self
);
U256::from_little_endian(&bytes)
if sign != BigIntSign::Plus && sign != BigIntSign::NoSign {
Copy link
Member

Choose a reason for hiding this comment

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

A Minus variant is available. It may be clearer to use it

Suggested change
if sign != BigIntSign::Plus && sign != BigIntSign::NoSign {
if BigIntSign::Minus {

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