result return for optimizer, test correctness

This commit is contained in:
NikVolf
2017-05-09 12:54:16 +03:00
parent e839064802
commit 3255d4be75
3 changed files with 19 additions and 6 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ fn main() {
// Invoke optimizer
// Contract is supposed to have only these functions as public api
// All other symbols not usable by this list is optimized away
wasm_utils::optimize(&mut module, vec!["_call"]);
wasm_utils::optimize(&mut module, vec!["_call"]).expect("Optimizer to finish without errors");
parity_wasm::serialize_to_file(&args[2], module).unwrap();
}