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

fix: remove serde "helper" Numeric #6304

Merged
merged 2 commits into from
Nov 13, 2023
Merged

fix: remove serde "helper" Numeric #6304

merged 2 commits into from
Nov 13, 2023

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Nov 13, 2023

Motivation

Not a helper: https://t.me/foundry_support/46602

Solution

Remove it

Comment on lines -878 to +876
let slot: U256 = slot.into();
let slot = U256::from_str(s).map_err(|e| eyre::eyre!("Could not parse slot number: {e}"))?;
Copy link
Member

Choose a reason for hiding this comment

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

cool, since u256 fromstr can handle this we indeed no longer need this

@DaniPopes DaniPopes merged commit 1a2e2e0 into master Nov 13, 2023
19 checks passed
@DaniPopes DaniPopes deleted the dani/rm-numeric branch November 13, 2023 23:51
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.

2 participants