Fix for miscalculation of storage root (#2285)

This commit is contained in:
cheme authored and Gav Wood committed 2019-04-16 15:28:53 +08:00
1 parent 1aa6eb9fa8
commit 47c1b4b26e
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -367,7 +367,7 @@ pub fn set_storage(key: &[u8], value: &[u8]) {
pub fn set_child_storage(storage_key: &[u8], key: &[u8], value: &[u8]) {
unsafe {
ext_set_child_storage.get()(
storage_key.as_ptr(), key.len() as u32,
storage_key.as_ptr(), storage_key.len() as u32,
key.as_ptr(), key.len() as u32,
value.as_ptr(), value.len() as u32
);