From 7a06a9eacdecc8574f81ca2229eaa59d5a2faae1 Mon Sep 17 00:00:00 2001 From: R2D2 Date: Tue, 9 Aug 2022 20:21:48 +0200 Subject: [PATCH] [fix]: Fixed a small bug in existence proofs --- shared/src/ledger/storage/merkle_tree.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/ledger/storage/merkle_tree.rs b/shared/src/ledger/storage/merkle_tree.rs index 02cfa560a04..c7fec10126d 100644 --- a/shared/src/ledger/storage/merkle_tree.rs +++ b/shared/src/ledger/storage/merkle_tree.rs @@ -364,6 +364,7 @@ impl MerkleTree { 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 })), @@ -381,7 +382,6 @@ impl MerkleTree { 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 })),