Skip to content

Commit

Permalink
EIP-7702: change chain_id type to U256 (#1839)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk authored Dec 23, 2024
1 parent 781ec82 commit 0f7e349
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ alloy-chains = { version = "0.1.18", default-features = false }

# eips
alloy-eip2930 = { version = "0.1.0", default-features = false }
alloy-eip7702 = { version = "0.4.1", default-features = false }
alloy-eip7702 = { version = "0.5.0", default-features = false }

# ethereum
ethereum_ssz_derive = "0.8"
Expand Down
4 changes: 2 additions & 2 deletions crates/consensus/src/transaction/envelope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,7 @@ mod tests {
storage_keys: vec![B256::left_padding_from(&[9])],
}]),
authorization_list: vec![(Authorization {
chain_id: 1,
chain_id: U256::from(1),
address: Address::left_padding_from(&[10]),
nonce: 1u64,
})
Expand Down Expand Up @@ -1313,7 +1313,7 @@ mod tests {
storage_keys: vec![B256::random()],
}]),
authorization_list: vec![(Authorization {
chain_id: 1,
chain_id: U256::from(1),
address: Address::left_padding_from(&[1]),
nonce: 1u64,
})
Expand Down
4 changes: 2 additions & 2 deletions crates/network/src/ethereum/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ mod tests {
};
use alloy_consensus::{BlobTransactionSidecar, TxEip1559, TxType, TypedTransaction};
use alloy_eips::eip7702::Authorization;
use alloy_primitives::{Address, PrimitiveSignature as Signature};
use alloy_primitives::{Address, PrimitiveSignature as Signature, U256};
use alloy_rpc_types_eth::{AccessList, TransactionRequest};
use std::str::FromStr;

Expand Down Expand Up @@ -238,7 +238,7 @@ mod tests {
.with_to(Address::ZERO)
.with_access_list(AccessList::default())
.with_authorization_list(vec![(Authorization {
chain_id: 1,
chain_id: U256::from(1),
address: Address::left_padding_from(&[1]),
nonce: 1u64,
})
Expand Down

0 comments on commit 0f7e349

Please sign in to comment.