Skip to content

Commit

Permalink
fix: javascore audit issues (#862)
Browse files Browse the repository at this point in the history
* fix: audit issues

* fix: cleanup
  • Loading branch information
ibrizsabin authored May 15, 2024
1 parent 5fcf54c commit 29f4ad7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.eclipsesource.json.Json;
import com.eclipsesource.json.JsonObject;
import com.eclipsesource.json.JsonValue;

import icon.proto.core.channel.Channel;
import icon.proto.core.channel.Packet;
import icon.proto.core.client.Height;
Expand Down Expand Up @@ -351,6 +350,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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down

0 comments on commit 29f4ad7

Please sign in to comment.