mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-25 11:47:56 +00:00
Fixes simple test
This commit is contained in:
@@ -145,7 +145,7 @@ impl<B: BlockT> StorageT for Storage<B> {
|
||||
Err(_) => return [0; STORAGE_ROOT_LEN],
|
||||
};
|
||||
|
||||
assert!(root.as_ref().len() != STORAGE_ROOT_LEN);
|
||||
assert!(root.as_ref().len() <= STORAGE_ROOT_LEN);
|
||||
let mut res = [0; STORAGE_ROOT_LEN];
|
||||
res.copy_from_slice(root.as_ref());
|
||||
res
|
||||
|
||||
Reference in New Issue
Block a user