From 5eab55329b44c381a725380d0c46e4234766deaa Mon Sep 17 00:00:00 2001 From: ibrizsabin Date: Thu, 9 May 2024 10:12:14 +0545 Subject: [PATCH] fix: audit issues --- .../javascore/ics20/src/main/java/ibc/ics20/ICS20Transfer.java | 1 + .../java/ibc/ics08/tendermint/ICS08TendermintLightClient.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/javascore/ics20/src/main/java/ibc/ics20/ICS20Transfer.java b/contracts/javascore/ics20/src/main/java/ibc/ics20/ICS20Transfer.java index a57b26164..d4e3bbbba 100644 --- a/contracts/javascore/ics20/src/main/java/ibc/ics20/ICS20Transfer.java +++ b/contracts/javascore/ics20/src/main/java/ibc/ics20/ICS20Transfer.java @@ -351,6 +351,7 @@ public void onAcknowledgementPacket(byte[] packet, byte[] acknowledgement, Addre */ @External public void onTimeoutPacket(byte[] packet, Address relayer) { + onlyIBC(); Packet packetDb = Packet.decode(packet); refundTokens(packetDb); } diff --git a/contracts/javascore/lightclients/ics-08-tendermint/src/main/java/ibc/ics08/tendermint/ICS08TendermintLightClient.java b/contracts/javascore/lightclients/ics-08-tendermint/src/main/java/ibc/ics08/tendermint/ICS08TendermintLightClient.java index beb28580f..916543fe1 100644 --- a/contracts/javascore/lightclients/ics-08-tendermint/src/main/java/ibc/ics08/tendermint/ICS08TendermintLightClient.java +++ b/contracts/javascore/lightclients/ics-08-tendermint/src/main/java/ibc/ics08/tendermint/ICS08TendermintLightClient.java @@ -5,7 +5,6 @@ import ibc.icon.score.util.StringUtil; import ibc.ics23.commitment.types.Merkle; import ibc.ics24.host.IBCCommitment; -import cosmos.ics23.v1.*; import google.protobuf.*; import tendermint.types.*; import ibc.core.commitment.v1.*;