Trait OpTransaction
pub trait OpTransaction {
// Required methods
fn is_deposit(&self) -> bool;
fn as_deposit(&self) -> Option<&Sealed<TxDeposit>>;
}
Expand description
Re-exported optimism types Represents an Optimism transaction envelope.
Compared to Ethereum it can tell whether the transaction is a deposit.
Required Methods§
fn is_deposit(&self) -> bool
fn is_deposit(&self) -> bool
Returns true
if the transaction is a deposit.
fn as_deposit(&self) -> Option<&Sealed<TxDeposit>>
fn as_deposit(&self) -> Option<&Sealed<TxDeposit>>
Returns Some
if the transaction is a deposit.