-
Notifications
You must be signed in to change notification settings - Fork 246
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
num-audit: extension #474
num-audit: extension #474
Conversation
* gas related field to `u128` * `nonce` and `number` to `u64` in `Header` from `B64` and `U256` respectively
|
I am experiencing serde-rs/json#625 on latest alloy while deserializing |
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 supportive
unifying all of them is necessary, just need to ensure we keep hex support
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.
last pedantic serde nits
#465 actually somewhat superseded by the newer issue wrt serde helpers redundant code |
not exactly because moving to Given how much surface area its add, my current preference is to leave everything tolerant |
hmm, for response types, being tolerant is actually beneficial because the user doesn't really care how the server formats it |
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.
per above,
also, supporting decimals on deserialize is okay and perhaps even preferable, in case servers don't follow QUANTITY
* num-audit: extension * gas related field to `u128` * `nonce` and `number` to `u64` in `Header` from `B64` and `U256` respectively * num-audit: gas fields to `u128` in Genesis * num-audit: use primitive types in rpc-types: common, optimism, receipt, request * fix(rpc-types): request tests * fix(rpc-types): optimism tests * add serde attr and fix rpc-types tests * timestamp -> `u64` in rpc-types `block` * nit * serde attr nits * skip_serializing nits * rpc-types: make `gas_used` required in receipt * fix: gas filler tests
Motivation
Extension of #454
Solution
u128
nonce
andnumber
tou64
inHeader
fromB64
andU256
respectivelyPR Checklist