mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 21:51:06 +00:00
Fix Wasm build issues.
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
//! Proposal: This describes a combination of a function ID and data that can be used to call into
|
//! Proposal: This describes a combination of a function ID and data that can be used to call into
|
||||||
//! an internal function.
|
//! an internal function.
|
||||||
|
|
||||||
use runtime_support::size_of;
|
use runtime_support::{size_of, Vec};
|
||||||
use slicable::Slicable;
|
use slicable::Slicable;
|
||||||
use joiner::Joiner;
|
use joiner::Joiner;
|
||||||
use streamreader::StreamReader;
|
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 {
|
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
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user