diff --git a/crates/primitives/src/result.rs b/crates/primitives/src/result.rs index 8364a9ac47..9bd2224808 100644 --- a/crates/primitives/src/result.rs +++ b/crates/primitives/src/result.rs @@ -88,9 +88,9 @@ impl From for EVMError { #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub enum InvalidTransaction { GasMaxFeeGreaterThanPriorityFee, - GasPriceLessThenBasefee, - CallerGasLimitMoreThenBlock, - CallGasCostMoreThenGasLimit, + GasPriceLessThanBasefee, + CallerGasLimitMoreThanBlock, + CallGasCostMoreThanGasLimit, /// EIP-3607 Reject transactions from senders with deployed code RejectCallerWithCode, /// Transaction account does not have enough amount of ether to cover transferred value and gas_limit*gas_price. diff --git a/crates/revm/src/evm_impl.rs b/crates/revm/src/evm_impl.rs index eb7041c382..e500a81db8 100644 --- a/crates/revm/src/evm_impl.rs +++ b/crates/revm/src/evm_impl.rs @@ -62,7 +62,7 @@ impl<'a, GSPEC: Spec, DB: Database, const INSPECT: bool> Transact // TODO maybe do this checks when creating evm. We already have all data there // or should be move effective_gas_price inside transact fn if effective_gas_price < basefee { - return Err(InvalidTransaction::GasPriceLessThenBasefee.into()); + return Err(InvalidTransaction::GasPriceLessThanBasefee.into()); } // check if priority fee is lower then max fee } @@ -72,9 +72,9 @@ impl<'a, GSPEC: Spec, DB: Database, const INSPECT: bool> Transact #[cfg(not(feature = "optional_block_gas_limit"))] let disable_block_gas_limit = false; - // unusual to be found here, but check if gas_limit is more then block_gas_limit + // unusual to be found here, but check if gas_limit is more than block_gas_limit if !disable_block_gas_limit && U256::from(gas_limit) > self.data.env.block.gas_limit { - return Err(InvalidTransaction::CallerGasLimitMoreThenBlock.into()); + return Err(InvalidTransaction::CallerGasLimitMoreThanBlock.into()); } // load acc @@ -133,7 +133,7 @@ impl<'a, GSPEC: Spec, DB: Database, const INSPECT: bool> Transact let mut gas = Gas::new(gas_limit); // record initial gas cost. if not using gas metering init will return. if !gas.record_cost(self.initialization::()?) { - return Err(InvalidTransaction::CallGasCostMoreThenGasLimit.into()); + return Err(InvalidTransaction::CallGasCostMoreThanGasLimit.into()); } // record all as cost. Gas limit here is reduced by init cost of bytes and access lists.