-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: make into_transaction fallible #4710
Conversation
Codecov Report
... and 50 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
lgtm,
pending suggestion re nonce U256 -> U64
/// Converts a typed transaction request into a primitive transaction. | ||
/// | ||
/// Returns `None` if any of the following are true: | ||
/// - `nonce` is greater than [`u64::MAX`] |
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.
just checked geth reference and nonce on rpc methods is U64,
I think we can also change this in our types?
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.
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.
Is there a reason we're using ruint for these txrequest anyway? I don't see any serde derives or whatever
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.
there are two steps here
TransactionRequest
-> TypedTransactionRequest
-> Transaction
arguably this could also be one step, but having a typed request is still useful
Fixes #4704