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)