Skip to content

Commit 0cb76eb

Browse files
izyakAntonAndell
authored andcommitted
fix: hash ack value before sending to verify membership for ics8 client
1 parent ec773cf commit 0cb76eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contracts/javascore/ibc/src/main/java/ibc/ics04/channel/IBCPacket.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,13 @@ public void _acknowledgePacket(Packet packet, byte[] acknowledgement, byte[] pro
181181

182182
byte[] packetAckPath = IBCCommitment.packetAcknowledgementCommitmentPath(packet.getDestinationPort(),
183183
packet.getDestinationChannel(), packet.getSequence());
184+
byte[] commitmentBytes = createAcknowledgmentCommitmentBytes(connection.getClientId(), acknowledgement);
184185
verifyPacketAcknowledgement(
185186
connection,
186187
proofHeight,
187188
proof,
188189
packetAckPath,
189-
acknowledgement);
190+
commitmentBytes);
190191

191192
if (channel.getOrdering() == Channel.Order.ORDER_ORDERED) {
192193
DictDB<String, BigInteger> nextSequenceAckSourcePort = nextSequenceAcknowledgements

0 commit comments

Comments
 (0)