Skip to content

Commit

Permalink
fix: acknowledgement compare issue fixed (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcranju authored Apr 4, 2024
1 parent 68daa8c commit 8dbb6ab
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import score.annotation.Optional;
import score.annotation.Payable;
import icon.ibc.interfaces.IIBCModule;
import java.util.Arrays;


import java.math.BigInteger;
Expand Down Expand Up @@ -332,7 +333,7 @@ public byte[] onRecvPacket(byte[] packet, Address relayer) {
@External
public void onAcknowledgementPacket(byte[] packet, byte[] acknowledgement, Address relayer) {
onlyIBC();
if (!acknowledgement.equals(ICS20Lib.SUCCESSFUL_ACKNOWLEDGEMENT_JSON)) {
if (!Arrays.equals(acknowledgement,ICS20Lib.SUCCESSFUL_ACKNOWLEDGEMENT_JSON)) {
Packet packetDb = Packet.decode(packet);
refundTokens(packetDb);
}
Expand Down

0 comments on commit 8dbb6ab

Please sign in to comment.