-
Notifications
You must be signed in to change notification settings - Fork 5
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
EIP-7702: change chain_id type to U256 #21
EIP-7702: change chain_id type to U256 #21
Conversation
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.
nits
crates/eip7702/src/auth_list.rs
Outdated
@@ -48,7 +48,7 @@ impl RecoveredAuthority { | |||
pub struct Authorization { | |||
/// The chain ID of the authorization. | |||
#[cfg_attr(feature = "serde", serde(with = "quantity"))] |
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.
this attribute is no longer necessary
crates/eip7702/src/auth_list.rs
Outdated
@@ -62,7 +62,7 @@ impl Authorization { | |||
/// # Note | |||
/// | |||
/// Implementers should check that this matches the current `chain_id` *or* is 0. | |||
pub const fn chain_id(&self) -> u64 { | |||
pub const fn chain_id(&self) -> U256 { |
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.
I'd rather return an &U256 here and leave the copy up to the caller
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
Motivation
close #20