From 48232fb9bb5c0b48d908236a7979ba34b41acf40 Mon Sep 17 00:00:00 2001 From: NikVolf Date: Wed, 21 Feb 2018 20:45:11 +0300 Subject: [PATCH] fix grow memory injector --- src/gas.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gas.rs b/src/gas.rs index ed88124..2f533d3 100644 --- a/src/gas.rs +++ b/src/gas.rs @@ -51,7 +51,6 @@ fn add_grow_counter(module: elements::Module, rules: &rules::Set, gas_func: u32) // todo: there should be strong guarantee that it does not return anything on stack? Call(gas_func), GrowMemory(0), - GetLocal(0), End, ])) .build() @@ -260,7 +259,6 @@ mod tests { I32Mul, Call(0), GrowMemory(0), - GetLocal(0), End, ][..], injected_module