mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
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:
committed by
GitHub
parent
8197894090
commit
88de40a678
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user