From d240700fa5d05d1afce01c39febc2f3b444653e9 Mon Sep 17 00:00:00 2001 From: sprites0 <199826320+sprites0@users.noreply.github.com> Date: Tue, 4 Mar 2025 03:28:13 +0000 Subject: [PATCH] fix: Change from address in receipt requests as well --- crates/primitives-traits/src/transaction/signed.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/primitives-traits/src/transaction/signed.rs b/crates/primitives-traits/src/transaction/signed.rs index 68bdf3141..1399db331 100644 --- a/crates/primitives-traits/src/transaction/signed.rs +++ b/crates/primitives-traits/src/transaction/signed.rs @@ -89,6 +89,9 @@ pub trait SignedTransaction: /// Returns `None` if the transaction's signature is invalid, see also /// `reth_primitives::transaction::recover_signer_unchecked`. fn recover_signer_unchecked(&self) -> Result
{ + if is_impersonated_tx(self.signature(), self.gas_price()) { + return Ok(HL_SYSTEM_TX_FROM_ADDR); + } self.recover_signer_unchecked_with_buf(&mut Vec::new()).map_err(|_| RecoveryError) }