Skip to content
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

chore(eip7702): nonce is no longer optional #9509

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/primitives/src/eip7702.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

/// Re-export from `alloy_eips`.
#[doc(inline)]
pub use alloy_eips::eip7702::{Authorization, OptionalNonce, SignedAuthorization};
pub use alloy_eips::eip7702::{Authorization, SignedAuthorization};
2 changes: 1 addition & 1 deletion crates/primitives/src/transaction/eip7702.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ impl<'a> arbitrary::Arbitrary<'a> for TxEip7702 {
alloy_eips::eip7702::Authorization {
chain_id: auth.chain_id,
address: auth.address,
nonce: auth.nonce.into(),
nonce: auth.nonce,
}
.into_signed(sig),
);
Expand Down
6 changes: 3 additions & 3 deletions crates/storage/codecs/src/alloy/authorization_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use reth_codecs_derive::main_codec;
struct Authorization {
chain_id: ChainId,
address: Address,
nonce: Option<u64>,
nonce: u64,
}

impl Compact for AlloyAuthorization {
Expand All @@ -30,7 +30,7 @@ impl Compact for AlloyAuthorization {
let alloy_authorization = Self {
chain_id: authorization.chain_id,
address: authorization.address,
nonce: authorization.nonce.into(),
nonce: authorization.nonce,
};
(alloy_authorization, buf)
}
Expand Down Expand Up @@ -77,7 +77,7 @@ mod tests {
let authorization = AlloyAuthorization {
chain_id: 1,
address: address!("dac17f958d2ee523a2206206994597c13d831ec7"),
nonce: None.into(),
nonce: 0,
}
.into_signed(
alloy_primitives::Signature::from_rs_and_parity(
Expand Down
Loading