Fixes simple test

This commit is contained in:
Bastian Köcher
2019-04-12 13:08:44 +02:00
parent 815e466c41
commit f213d5ed83
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -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