mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-06-12 10:01:12 +00:00
result return for optimizer, test correctness
This commit is contained in:
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user