From a9f5058b4f02d20db52facb6fad02e25584b9986 Mon Sep 17 00:00:00 2001 From: NikVolf Date: Mon, 6 Aug 2018 16:06:31 +0300 Subject: [PATCH] fix not saving raw module when no constructor specified --- cli/build/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/build/main.rs b/cli/build/main.rs index df0eb63..fa471c8 100644 --- a/cli/build/main.rs +++ b/cli/build/main.rs @@ -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(())