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

This commit is contained in:
Gav
2018-02-09 14:19:13 +01:00
6 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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.