Skip to content

Commit

Permalink
fix: hash ack value before sending to verify membership for ics8 client
Browse files Browse the repository at this point in the history
  • Loading branch information
izyak committed Feb 7, 2024
1 parent ec773cf commit 537cfa2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,11 @@ private void verifyPacketAcknowledgement(
byte[] path,
byte[] acknowledgementCommitmentBytes) {
ILightClient client = getClient(connection.getClientId());

if (IBCCommitment.getHashType(connection.getClientId()) == IBCHost.HashType.ICS08.type) {
acknowledgementCommitmentBytes = IBCCommitment.sha256(acknowledgementCommitmentBytes);
}

client.verifyMembership(
connection.getClientId(),
height,
Expand Down

0 comments on commit 537cfa2

Please sign in to comment.