Trait ExecuteCommitEvm
pub trait ExecuteCommitEvm: ExecuteEvm {
type CommitOutput;
// Required method
fn replay_commit(&mut self) -> Self::CommitOutput;
// Provided method
fn transact_commit(&mut self, tx: Self::Tx) -> Self::CommitOutput { ... }
}
Expand description
Extension of the ExecuteEvm
trait that adds a method that commits the state after execution.
Required Associated Types§
type CommitOutput
type CommitOutput
Commit output of transaction execution.
Required Methods§
fn replay_commit(&mut self) -> Self::CommitOutput
fn replay_commit(&mut self) -> Self::CommitOutput
Transact the transaction and commit to the state.
Provided Methods§
fn transact_commit(&mut self, tx: Self::Tx) -> Self::CommitOutput
fn transact_commit(&mut self, tx: Self::Tx) -> Self::CommitOutput
Transact the transaction and commit to the state.