Skip to content
Snippets Groups Projects
Commit 96a200b1 authored by Gav's avatar Gav
Browse files

Merge branch 'update-wasm' of github.com:paritytech/polkadot into update-wasm

parents b20f91d6 4ca99758
Branches
No related merge requests found
No preview for this file type
No preview for this file type
......@@ -148,7 +148,7 @@ macro_rules! impl_stubs {
};
let output = $invoke(input);
Some($crate::codec::Slicable::to_vec(&output))
Some($crate::codec::Slicable::encode(&output))
}}
}
......
......@@ -227,7 +227,7 @@ macro_rules! impl_stubs {
};
let output = ($invoke)(input);
let output = $crate::codec::Slicable::to_vec(&output);
let output = $crate::codec::Slicable::encode(&output);
let res = output.as_ptr() as u64 + ((output.len() as u64) << 32);
// Leak the output vector to avoid it being freed.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment