Skip to content

Commit

Permalink
fix: intrinsic gas validatoin (#935)
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat authored Sep 13, 2024
1 parent 53c8645 commit 307f330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/evm/src/backend/validation.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 307f330

Please sign in to comment.