Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Feb 20, 2024
1 parent fecc45a commit a4650ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions crates/store/src/avl/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ fn proof() {
let node_a = tree.root.as_ref().unwrap();
let node_b = node_a.right.as_ref().unwrap();
let root = tree.root_hash().expect("Unable to retrieve root hash");
let ics_proof = tree
.get_proof("B")
.expect("Unable to retrieve proof for 'B'");
let ics_proof = tree.get_proof("B");
let proof = match &ics_proof.proof.as_ref().unwrap() {
Proof::Exist(proof) => proof,
_ => panic!("Should return an existence proof"),
Expand Down
2 changes: 1 addition & 1 deletion crates/store/src/impls/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl ProvableStore for InMemoryStore {
key.to_string(),
height
);
self.get_state(height).and_then(|v| v.get_proof(key))
self.get_state(height).map(|v| v.get_proof(key))
}
}

Expand Down

0 comments on commit a4650ae

Please sign in to comment.