Merge pull request #101 from paritytech/fix-output

Fix not saving raw module when no constructor specified
This commit is contained in:
Nikolay Volf 2018-08-06 16:50:57 +03:00 committed by GitHub
commit 19ce379f64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(())