revm_transaction::legacy

Trait LegacyTx

Source
pub trait LegacyTx: CommonTxFields {
    // Required methods
    fn kind(&self) -> TxKind;
    fn chain_id(&self) -> Option<u64>;
    fn gas_price(&self) -> u128;
}
Expand description

Legacy transaction trait before introduction of EIP-2929

Required Methods§

Source

fn kind(&self) -> TxKind

Transaction kind.

Source

fn chain_id(&self) -> Option<u64>

Chain Id is optional for legacy transactions As it was introduced in EIP-155.

Source

fn gas_price(&self) -> u128

Gas price for the transaction.

Implementors§