pub fn transact_erc20evm_commit<EVM>(
evm: &mut EVM,
) -> Result<ExecutionResult<HaltReason>, EVMError<ContextTrDbError<EVM::Context>, InvalidTransaction>>where
EVM: EvmTr<Context: ContextTr<Journal: JournalTr<State = EvmState>, Db: DatabaseCommit>, Precompiles: PrecompileProvider<EVM::Context, Output = InterpreterResult>, Instructions: InstructionProvider<Context = EVM::Context, InterpreterTypes = EthInterpreter>, Frame = EthFrame<EthInterpreter>>,
Expand description
Executes a transaction using ERC20 tokens for gas payment and commits the state. This is a convenience function that runs the transaction and immediately commits the resulting state changes to the database.