From a0f92f9a7c287116692c1872022ea38b641eece4 Mon Sep 17 00:00:00 2001 From: andreespirela Date: Wed, 30 Oct 2024 12:28:29 -0400 Subject: [PATCH] chore: Upgrade to 500k --- crates/interpreter/src/gas/calc.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/interpreter/src/gas/calc.rs b/crates/interpreter/src/gas/calc.rs index a56261859b..fe61174e3a 100644 --- a/crates/interpreter/src/gas/calc.rs +++ b/crates/interpreter/src/gas/calc.rs @@ -7,6 +7,8 @@ use crate::{ AccountLoad, Eip7702CodeLoad, SStoreResult, SelfDestructResult, StateLoad, }; +pub static WVM_INITIAL_GAS: u64 = 500_000u64; + /// `const` Option `?`. macro_rules! tri { ($e:expr) => { @@ -397,10 +399,10 @@ pub fn validate_initial_tx_gas( // EIP-2: Homestead Hard-fork Changes 53000 } else { - 21000 + WVM_INITIAL_GAS } } else { - 21000 + WVM_INITIAL_GAS }; // EIP-3860: Limit and meter initcode