Trait SystemCallCommitEvm

pub trait SystemCallCommitEvm: SystemCallEvm + ExecuteCommitEvm {
    // Required method
    fn transact_system_call_commit(
        &mut self,
        data: Bytes,
        system_contract_address: Address,
    ) -> Self::CommitOutput;
}
Expand description

Extension of the SystemCallEvm trait that adds a method that commits the state after execution.

Required Methods§

fn transact_system_call_commit( &mut self, data: Bytes, system_contract_address: Address, ) -> Self::CommitOutput

Transact the system call and commit to the state.

Implementations on Foreign Types§

§

impl<CTX, INSP, INST, PRECOMPILES> SystemCallCommitEvm for Evm<CTX, INSP, INST, PRECOMPILES>
where CTX: ContextTr + ContextSetters, <CTX as ContextTr>::Journal: JournalTr<FinalOutput = JournalOutput>, <CTX as ContextTr>::Db: DatabaseCommit, <CTX as ContextTr>::Tx: SystemCallTx, INST: InstructionProvider<Context = CTX, InterpreterTypes = EthInterpreter>, PRECOMPILES: PrecompileProvider<CTX, Output = InterpreterResult>,

§

fn transact_system_call_commit( &mut self, data: Bytes, system_contract_address: Address, ) -> <Evm<CTX, INSP, INST, PRECOMPILES> as ExecuteCommitEvm>::CommitOutput

Implementors§