From adbade46bbc05b5a3bd664192f20d6c607d09950 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 7 Jan 2025 15:57:30 +0100 Subject: [PATCH] feat!:rm 7702 auth items from receipt response --- crates/network-primitives/src/traits.rs | 11 +---------- crates/rpc-types-eth/src/transaction/receipt.rs | 11 ----------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/crates/network-primitives/src/traits.rs b/crates/network-primitives/src/traits.rs index 944f360a47e..c8743c35bde 100644 --- a/crates/network-primitives/src/traits.rs +++ b/crates/network-primitives/src/traits.rs @@ -1,10 +1,8 @@ +use crate::BlockTransactions; use alloy_consensus::{BlockHeader, Transaction}; -use alloy_eips::eip7702::SignedAuthorization; use alloy_primitives::{Address, BlockHash, TxHash, B256}; use alloy_serde::WithOtherFields; -use crate::BlockTransactions; - /// Receipt JSON-RPC response. pub trait ReceiptResponse { /// Address of the created contract, or `None` if the transaction was not a deployment. @@ -50,9 +48,6 @@ pub trait ReceiptResponse { /// Address of the receiver. fn to(&self) -> Option
; - /// EIP-7702 Authorization list. - fn authorization_list(&self) -> Option<&[SignedAuthorization]>; - /// Returns the cumulative gas used at this receipt. fn cumulative_gas_used(&self) -> u64; @@ -205,10 +200,6 @@ impl ReceiptResponse for WithOtherFields { self.inner.to() } - fn authorization_list(&self) -> Option<&[SignedAuthorization]> { - self.inner.authorization_list() - } - fn cumulative_gas_used(&self) -> u64 { self.inner.cumulative_gas_used() } diff --git a/crates/rpc-types-eth/src/transaction/receipt.rs b/crates/rpc-types-eth/src/transaction/receipt.rs index 201dcae31d4..61258ae79e3 100644 --- a/crates/rpc-types-eth/src/transaction/receipt.rs +++ b/crates/rpc-types-eth/src/transaction/receipt.rs @@ -1,7 +1,5 @@ use crate::Log; -use alloc::vec::Vec; use alloy_consensus::{ReceiptEnvelope, TxReceipt, TxType}; -use alloy_eips::eip7702::SignedAuthorization; use alloy_network_primitives::ReceiptResponse; use alloy_primitives::{Address, BlockHash, TxHash, B256}; @@ -67,10 +65,6 @@ pub struct TransactionReceipt> { pub to: Option
, /// Contract address created, or None if not a deployment. pub contract_address: Option
, - /// The authorization list is a list of tuples that store the address to code which the signer - /// desires to execute in the context of their EOA. - #[cfg_attr(feature = "serde", serde(default, skip_serializing_if = "Option::is_none"))] - pub authorization_list: Option>, } impl AsRef> for TransactionReceipt { @@ -128,7 +122,6 @@ impl TransactionReceipt { from: self.from, to: self.to, contract_address: self.contract_address, - authorization_list: self.authorization_list, } } } @@ -182,10 +175,6 @@ impl> ReceiptResponse for TransactionReceipt { self.to } - fn authorization_list(&self) -> Option<&[SignedAuthorization]> { - self.authorization_list.as_deref() - } - fn cumulative_gas_used(&self) -> u64 { self.inner.cumulative_gas_used() }