shardtree: Justify `unwraps` due to upheld pre-conditions
This commit is contained in:
parent
74410d059f
commit
1e81f3ca45
|
@ -1162,7 +1162,8 @@ impl<
|
||||||
cur_addr = cur_addr.parent();
|
cur_addr = cur_addr.parent();
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(MerklePath::from_parts(witness, position).unwrap())
|
Ok(MerklePath::from_parts(witness, position)
|
||||||
|
.expect("witness has length DEPTH because we extended it to the root"))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn witness_internal(
|
fn witness_internal(
|
||||||
|
|
Loading…
Reference in New Issue