-
Notifications
You must be signed in to change notification settings - Fork 746
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 Uint256 deserialization #2786
Conversation
FYI clippy is unhappy and I've made some suggestions to Sean's PR which you might cause conflicts (I don't think they will). I'll give this a review once Sean's PR goes into Kintsugi and the diff is clean 🚀 |
e03ec64
to
cd263f6
Compare
cd263f6
to
74bfb29
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice and clean!
I wrote a quick test to double-check my understand over at paulhauner@032ffd2. It might be nice to cherry-pick that on this branch. Up to you.
Feel free to squash-merge into kintsugi
when you're happy :)
* Change base_fee_per_gas to Uint256 * Add custom (de)serialization to ExecutionPayload * Fix errors * Add a quoted_u256 module * Remove unused function * lint * Add test * Remove extra line Co-authored-by: Paul Hauner <[email protected]>
* Change base_fee_per_gas to Uint256 * Add custom (de)serialization to ExecutionPayload * Fix errors * Add a quoted_u256 module * Remove unused function * lint * Add test * Remove extra line Co-authored-by: Paul Hauner <[email protected]>
* Change base_fee_per_gas to Uint256 * Add custom (de)serialization to ExecutionPayload * Fix errors * Add a quoted_u256 module * Remove unused function * lint * Add test * Remove extra line Co-authored-by: Paul Hauner <[email protected]>
* Change base_fee_per_gas to Uint256 * Add custom (de)serialization to ExecutionPayload * Fix errors * Add a quoted_u256 module * Remove unused function * lint * Add test * Remove extra line Co-authored-by: Paul Hauner <[email protected]>
Issue Addressed
N/A
Proposed Changes
Builds upon @realbigsean 's merge spec test fixes from #2781. Add a
quoted_u256
module ineth2_serde_utils
to correctly decode Uint256 values from string.Additional Info
Had to add the
ethereum-types
dependency toserde_utils
and use the local crate instead of the published version.We could also move the
quoted_u256
module totypes
instead if we want to use the published version.