update gas assert

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

No files matched your search

+1
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]
-2
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)