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§
Sourcefn new_system_tx(data: Bytes, system_contract_address: Address) -> Self
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.