update gas assert

This commit is contained in:
NikVolf 2017-05-26 02:40:28 +03:00
parent 4baeea8733
commit 0410ae407a
2 changed files with 1 additions and 2 deletions

View File

@ -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]

View File

@ -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)