mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 07:01:02 +00:00
Contracts: Fix legacy uapi (#3994)
Fix some broken legacy definitions of pallet_contracts_uapi storage host functions
This commit is contained in:
@@ -243,9 +243,10 @@ impl<T: Config> WasmBlob<T> {
|
||||
.define("env", "memory", memory)
|
||||
.expect("We just created the Linker. It has no definitions with this name; qed");
|
||||
|
||||
let instance = linker
|
||||
.instantiate(&mut store, &contract.module)
|
||||
.map_err(|_| "can't instantiate module with provided definitions")?;
|
||||
let instance = linker.instantiate(&mut store, &contract.module).map_err(|err| {
|
||||
log::debug!(target: LOG_TARGET, "failed to instantiate module: {:?}", err);
|
||||
"can't instantiate module with provided definitions"
|
||||
})?;
|
||||
|
||||
Ok((store, memory, instance))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user