mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-10-26 05:35:09 +00:00
fix not saving raw module when no constructor specified
This commit is contained in:
1 parent
4b8b07a0b5
commit
a9f5058b4f
1 file changed
+2
@@ -178,6 +178,8 @@ fn do_main() -> Result<(), Error> {
|
||||
&path,
|
||||
ctor_module,
|
||||
).map_err(Error::Encoding)?;
|
||||
} else {
|
||||
parity_wasm::serialize_to_file(&path, module).map_err(Error::Encoding)?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in new issue
Block a user