Skip to content

Commit

Permalink
fix expect messages
Browse files Browse the repository at this point in the history
Co-authored-by: teor <[email protected]>
  • Loading branch information
oxarbitrage and teor2345 committed Nov 8, 2023
1 parent 3a3f333 commit bfc6c24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zebra-scan/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@ async fn scanning_from_populated_zebra_state() -> Result<()> {
let sapling_tree_size = 1;
let orchard_tree_size = db
.orchard_tree_by_hash_or_height(height.into())
.expect("should exist")
.expect("each state block must have a sapling tree")
.count();

let chain_metadata = ChainMetadata {
sapling_commitment_tree_size: sapling_tree_size
.try_into()
.expect("position should fit in u32"),
.expect("sapling position is limited to u32::MAX"),
orchard_commitment_tree_size: orchard_tree_size
.try_into()
.expect("position should fit in u32"),
.expect("orchard position is limited to u32::MAX"),
};

let compact_block = block_to_compact(block, chain_metadata);
Expand Down

0 comments on commit bfc6c24

Please sign in to comment.