Skip to content
Snippets Groups Projects
Commit 5110d115 authored by Bastian Köcher's avatar Bastian Köcher
Browse files

Fixes simple test

parent e4ec12a6
Branches
No related merge requests found
......@@ -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![
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment