Fix Wasm build issues.

This commit is contained in:
Gav
2018-01-23 12:12:48 +01:00
parent 07b9425ef6
commit 8e8ea203d5
4 changed files with 2 additions and 2 deletions
@@ -17,7 +17,7 @@
//! Proposal: This describes a combination of a function ID and data that can be used to call into
//! an internal function.
use runtime_support::size_of;
use runtime_support::{size_of, Vec};
use slicable::Slicable;
use joiner::Joiner;
use streamreader::StreamReader;
+1 -1
View File
@@ -52,7 +52,7 @@ pub fn set_storage(key: &[u8], value: &[u8]) {
}
}
pub fn read_storage(key: &[u8], value_offset: usize, value_out: &mut [u8]) -> usize {
pub fn read_storage(key: &[u8], value_out: &mut [u8], value_offset: usize) -> usize {
unsafe {
ext_get_storage_into(&key[0], key.len() as u32, &mut value_out[0], value_out.len() as u32, value_offset as u32) as usize
}