From 0410ae407ab47eb184e0d8a01fb5e8d0130f1942 Mon Sep 17 00:00:00 2001 From: NikVolf Date: Fri, 26 May 2017 02:40:28 +0300 Subject: [PATCH] update gas assert --- Cargo.toml | 1 + src/gas.rs | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1edba74..e802fd6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,7 @@ parity-wasm = { git="https://github.com/nikvolf/parity-wasm" } log = "0.3" env_logger = "0.4" lazy_static = "0.2" +clap = "2.24" [lib] diff --git a/src/gas.rs b/src/gas.rs index a57e9d6..2366c7c 100644 --- a/src/gas.rs +++ b/src/gas.rs @@ -52,8 +52,6 @@ pub fn inject_gas_counter(module: elements::Module) -> elements::Module { // back to plain module let mut module = mbuilder.build(); - assert!(module.global_section().is_some()); - // calculate actual function index of the imported definition // (substract all imports that are NOT functions)