mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-04-30 14:08:00 +00:00
Preserve deploy symbol on optimize for substrate target
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ impl fmt::Display for Error {
|
||||
}
|
||||
}
|
||||
|
||||
/// If module has an exported function matching "create" symbol we want to pack it into "constructor".
|
||||
/// If a pwasm module has an exported function matching "create" symbol we want to pack it into "constructor".
|
||||
/// `raw_module` is the actual contract code
|
||||
/// `ctor_module` is the constructor which should return `raw_module`
|
||||
pub fn pack_instance(raw_module: Vec<u8>, mut ctor_module: elements::Module, target: &TargetRuntime) -> Result<elements::Module, Error> {
|
||||
|
||||
Reference in New Issue
Block a user