Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

fix(core): add from_x_or_hex to remaining genesis fields #2360

Merged
merged 5 commits into from
Apr 18, 2023

Conversation

Rjected
Copy link
Contributor

@Rjected Rjected commented Apr 18, 2023

Motivation

Some fields were missed for Genesis decimal string deserialization.

Solution

Followup to #2359, adding remaining deserializers to Genesis fields.

This changes usages of from_int_or_hex to deserialize_stringified_numeric, and removes the from_int_or_hex methods.

Modifies StringifiedNumeric to support arbitrary precision.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Collaborator

@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.

that the Uint types use decimal string if 0x is missing is a bot horrible

@gakonst gakonst merged commit 6ebb1b2 into gakonst:master Apr 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants