chore(deps): weekly cargo update (#13866)

Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2025-01-19 19:02:27 +01:00
committed by GitHub
parent 8197894090
commit 88de40a678
7 changed files with 401 additions and 370 deletions

View File

@ -121,6 +121,19 @@ impl SignedTransaction for OpTransactionSigned {
}
}
/// A trait that represents an optimism transaction, mainly used to indicate whether or not the
/// transaction is a deposit transaction.
pub trait OpTransaction {
/// Whether or not the transaction is a dpeosit transaction.
fn is_deposit(&self) -> bool;
}
impl OpTransaction for OpTransactionSigned {
fn is_deposit(&self) -> bool {
self.is_deposit()
}
}
#[cfg(feature = "optimism")]
impl reth_primitives_traits::FillTxEnv for OpTransactionSigned {
fn fill_tx_env(&self, tx_env: &mut revm_primitives::TxEnv, sender: Address) {
@ -616,10 +629,6 @@ impl DepositTransaction for OpTransactionSigned {
fn is_system_transaction(&self) -> bool {
self.is_deposit()
}
fn is_deposit(&self) -> bool {
self.is_deposit()
}
}
/// Bincode-compatible transaction type serde implementations.