diff --git a/src/gas.rs b/src/gas.rs index 14f8365..86ffc96 100644 --- a/src/gas.rs +++ b/src/gas.rs @@ -251,6 +251,9 @@ pub fn inject_gas_counter(module: elements::Module, rules: &rules::Set) } } }, + &mut elements::Section::Start(ref mut start_idx) => { + if *start_idx >= gas_func { *start_idx += 1} + }, _ => { } } }