Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
fix: my bad
Browse files Browse the repository at this point in the history
  • Loading branch information
srdtrk committed Nov 1, 2024
1 parent 622dd39 commit d1de940
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ pub fn convert_tm_to_ics_merkle_proof(
) -> Result<MerkleProof, prost::DecodeError> {
let mut proofs = Vec::with_capacity(tm_proof.ops.len());

for (i, op) in tm_proof.ops.iter().enumerate() {
let mut parsed = CommitmentProof::default();
for op in &tm_proof.ops {
let mut parsed = CommitmentProof { proof: None };

prost::Message::merge(&mut parsed, op.data.as_slice())?;
proofs[i] = parsed;

proofs.push(parsed);
}

Ok(MerkleProof { proofs })
Expand Down

0 comments on commit d1de940

Please sign in to comment.