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");