Skip to content

Commit

Permalink
[fix]: Fixed a small bug in existence proofs
Browse files Browse the repository at this point in the history
  • Loading branch information
batconjurer authored and tzemanovic committed Aug 11, 2022
1 parent 80d2d54 commit 7a06a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/src/ledger/storage/merkle_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ impl<H: StorageHasher + Default> MerkleTree<H> {
Ics23Proof::Exist(ep) => CommitmentProof {
proof: Some(Ics23Proof::Exist(ExistenceProof {
key: sub_key.to_string().as_bytes().to_vec(),
value,
leaf: Some(self.leaf_spec()),
..ep
})),
Expand All @@ -381,7 +382,6 @@ impl<H: StorageHasher + Default> MerkleTree<H> {
match cp.proof.expect("The proof should exist") {
Ics23Proof::Exist(ep) => CommitmentProof {
proof: Some(Ics23Proof::Exist(ExistenceProof {
value,
leaf: Some(self.ibc_leaf_spec()),
..ep
})),
Expand Down

0 comments on commit 7a06a9e

Please sign in to comment.