From 429450c042f34740cf1165ea14d9bb301dbf5ae9 Mon Sep 17 00:00:00 2001 From: enitrat Date: Fri, 13 Sep 2024 12:32:08 +0200 Subject: [PATCH] fix: intrinsic gas validatoin --- crates/evm/src/backend/validation.cairo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/evm/src/backend/validation.cairo b/crates/evm/src/backend/validation.cairo index 574335cc1..93c129d28 100644 --- a/crates/evm/src/backend/validation.cairo +++ b/crates/evm/src/backend/validation.cairo @@ -47,7 +47,7 @@ pub fn validate_eth_tx(kakarot_state: @KakarotCore::ContractState, tx: Transacti assert!(effective_gas_price.is_ok(), "{:?}", effective_gas_price.unwrap_err()); // Intrinsic Gas let intrinsic_gas = gas::calculate_intrinsic_gas_cost(@tx); - assert(gas_limit > intrinsic_gas, 'Intrinsic gas > gas limit'); + assert(gas_limit >= intrinsic_gas, 'Intrinsic gas > gas limit'); // Validate balance let balance = IERC20CamelDispatcher {