mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-05-08 20:28:02 +00:00
Merge pull request #129 from oscoin/fix-pwasm
Preserve "deploy" when optimizing pwasm ctor module
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@ pub fn build(
|
||||
|
||||
if !skip_optimization {
|
||||
let preserved_exports = match target_runtime {
|
||||
TargetRuntime::PWasm(_) => vec![target_runtime.symbols().call],
|
||||
TargetRuntime::PWasm(_) => vec![target_runtime.symbols().create],
|
||||
TargetRuntime::Substrate(_) => vec![target_runtime.symbols().call, target_runtime.symbols().create],
|
||||
};
|
||||
optimize(&mut ctor_module, preserved_exports)?;
|
||||
|
||||
Reference in New Issue
Block a user