Trait SystemCallTx

Source
pub trait SystemCallTx {
    // Required method
    fn new_system_tx(data: Bytes, system_contract_address: Address) -> Self;
}
Expand description

Creates the system transaction with default values and set data and tx call target to system contract address that is going to be called.

The caller is set to be SYSTEM_ADDRESS.

It is used inside SystemCallEvm and SystemCallCommitEvm traits to prepare EVM for system call execution.

Required Methods§

Source

fn new_system_tx(data: Bytes, system_contract_address: Address) -> Self

Creates new transaction for system call.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SystemCallTx for TxEnv

Source§

fn new_system_tx(data: Bytes, system_contract_address: Address) -> Self

Implementors§