mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-06-13 23:21:08 +00:00
some fixes
This commit is contained in:
+3
-3
@@ -8,7 +8,7 @@ use clap::{App, Arg};
|
||||
fn main() {
|
||||
logger::init_log();
|
||||
|
||||
let matches = App::new("wasm-opt")
|
||||
let matches = App::new("wasm-prune")
|
||||
.arg(Arg::with_name("input")
|
||||
.index(1)
|
||||
.required(true)
|
||||
@@ -39,7 +39,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
|
||||
utils::optimize(&mut module, exports).expect("Optimizer to finish without errors");
|
||||
utils::optimize(&mut module, exports).expect("Optimizer failed");
|
||||
|
||||
parity_wasm::serialize_to_file(&output, module).unwrap();
|
||||
parity_wasm::serialize_to_file(&output, module).expect("Serialization failed");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user