From 328aecd46ecbeda30cc6d9875f62a4c36458104e Mon Sep 17 00:00:00 2001 From: izyak Date: Thu, 18 Apr 2024 13:04:36 +0545 Subject: [PATCH] fix: correct coinname --- .../src/main/java/foundation/icon/btp/bts/BTPTokenService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascore/bts/src/main/java/foundation/icon/btp/bts/BTPTokenService.java b/javascore/bts/src/main/java/foundation/icon/btp/bts/BTPTokenService.java index 54044f44..9c460280 100644 --- a/javascore/bts/src/main/java/foundation/icon/btp/bts/BTPTokenService.java +++ b/javascore/bts/src/main/java/foundation/icon/btp/bts/BTPTokenService.java @@ -501,7 +501,7 @@ public void tokenFallback(Address _from, BigInteger _value, byte[] _data) { // icon bridge migration checks requireNotEth(_coinName); - Coin coin = coinDb.get(name); + Coin coin = coinDb.get(_coinName); require(coin.getCoinType() == NATIVE_WRAPPED_COIN_TYPE, "Cannnot transfer icon tokens anymore."); Context.require(coinAddresses.get(_coinName) != null, "CoinNotExists");