diff --git a/Cargo.lock b/Cargo.lock index 0856b05a1e58..938f4bf9e987 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6895,6 +6895,7 @@ name = "reth-e2e-test-utils" version = "1.0.7" dependencies = [ "alloy-consensus", + "alloy-eips", "alloy-network", "alloy-primitives", "alloy-rpc-types", diff --git a/crates/e2e-test-utils/Cargo.toml b/crates/e2e-test-utils/Cargo.toml index 8f1aa6b7a522..a10162e78ff6 100644 --- a/crates/e2e-test-utils/Cargo.toml +++ b/crates/e2e-test-utils/Cargo.toml @@ -34,6 +34,7 @@ jsonrpsee.workspace = true # ethereum alloy-primitives.workspace = true +alloy-eips.workspace = true op-alloy-rpc-types-engine.workspace = true futures-util.workspace = true diff --git a/crates/e2e-test-utils/src/transaction.rs b/crates/e2e-test-utils/src/transaction.rs index 10bce216e157..b3d01faedc9e 100644 --- a/crates/e2e-test-utils/src/transaction.rs +++ b/crates/e2e-test-utils/src/transaction.rs @@ -1,4 +1,5 @@ use alloy_consensus::{EnvKzgSettings, SidecarBuilder, SimpleCoder, TxEip4844Variant, TxEnvelope}; +use alloy_eips::eip7702::SignedAuthorization; use alloy_network::{ eip2718::Encodable2718, Ethereum, EthereumWallet, TransactionBuilder, TransactionBuilder4844, }; @@ -7,7 +8,6 @@ use alloy_rpc_types::{Authorization, TransactionInput, TransactionRequest}; use alloy_signer::SignerSync; use alloy_signer_local::PrivateKeySigner; use eyre::Ok; -use reth_primitives::eip7702::SignedAuthorization; /// Helper for transaction operations #[derive(Debug)] diff --git a/crates/primitives/src/eip7702.rs b/crates/primitives/src/eip7702.rs deleted file mode 100644 index e05bdc4a4118..000000000000 --- a/crates/primitives/src/eip7702.rs +++ /dev/null @@ -1,5 +0,0 @@ -//! Types for working with EIP-7702 transactions. - -/// Re-export from `alloy_eips`. -#[doc(inline)] -pub use alloy_eips::eip7702::{Authorization, SignedAuthorization}; diff --git a/crates/primitives/src/lib.rs b/crates/primitives/src/lib.rs index 0760897faee9..5f65eb4d6f1f 100644 --- a/crates/primitives/src/lib.rs +++ b/crates/primitives/src/lib.rs @@ -28,7 +28,6 @@ mod block; mod compression; pub mod constants; pub mod eip4844; -pub mod eip7702; pub mod proofs; mod receipt; pub use reth_static_file_types as static_file; diff --git a/crates/primitives/src/transaction/mod.rs b/crates/primitives/src/transaction/mod.rs index 78e63adafa49..bc0579ca6625 100644 --- a/crates/primitives/src/transaction/mod.rs +++ b/crates/primitives/src/transaction/mod.rs @@ -1,9 +1,7 @@ //! Transaction types. -use crate::{ - eip7702::SignedAuthorization, keccak256, Address, BlockHashOrNumber, Bytes, TxHash, TxKind, - B256, U256, -}; +use crate::{keccak256, Address, BlockHashOrNumber, Bytes, TxHash, TxKind, B256, U256}; +use alloy_eips::eip7702::SignedAuthorization; use alloy_consensus::SignableTransaction; use alloy_primitives::Parity;