Fixes simple test

This commit is contained in:
Bastian Köcher
2019-04-12 13:08:44 +02:00
parent e4ec12a609
commit 5110d115eb
2 changed files with 1 additions and 3 deletions
@@ -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
@@ -42,9 +42,7 @@ fn call_validate_block(block_data: ParachainBlockData<Block>) -> Result<()> {
"validate_block",
|alloc| {
let block_data = block_data.encode();
println!("ALLOC: {}", block_data.len());
let block_data_offset = alloc(&block_data)?;
println!("ALLOC");
Ok(
vec![