Skip to content
Snippets Groups Projects
Commit 8e8ea203 authored by Gav's avatar Gav
Browse files

Fix Wasm build issues.

parent 07b9425e
Branches
No related merge requests found
......@@ -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;
......
......@@ -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
}
......
No preview for this file type
No preview for this file type
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