Skip to content

Commit 4a1404e

Browse files
committed
fix: name of token
1 parent 076338f commit 4a1404e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

javascore/bts/src/main/java/foundation/icon/btp/bts/BTPTokenService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ private void checkUintLimit(BigInteger value) {
15401540
}
15411541

15421542
private void requireNotEth(String name) {
1543-
String ethName = "btp-0x38.bsc-eth";
1543+
String ethName = "btp-0x38.bsc-ETH";
15441544
require(!name.equals(ethName), "NotETH");
15451545
}
15461546
}

javascore/bts/src/test/java/foundation/icon/btp/bts/BTSTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ public void preventEthTokenTransfer() {
13451345
sendBTPMessageMock();
13461346
String btpaddr = generateBTPAddress(METACHAIN, owner.getAddress().toString());
13471347

1348-
String tokenName = "btp-0x38.bsc-eth";
1348+
String tokenName = "btp-0x38.bsc-ETH";
13491349

13501350
Verification deployWrappedToken = () -> Context.deploy(any(), eq(tokenName),
13511351
eq(tokenName),eq(18));
@@ -1396,7 +1396,7 @@ public void migrationRestrictionOnTransferBatch_includeICX() {
13961396

13971397
@Test
13981398
public void migrationRestrictionOnTransferBatch_includeETHTokens() {
1399-
String tokenName = "btp-0x38.bsc-eth";
1399+
String tokenName = "btp-0x38.bsc-ETH";
14001400

14011401
String[] coinNames = new String[]{tokenName,"Token1", "Token2", "Token3", "Token4", PARA};
14021402
BigInteger val = BigInteger.valueOf(10);

solidity/bts/contracts/BTSCoreV5.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ contract BTSCoreV5 is Initializable, IBTSCoreV2, ReentrancyGuardUpgradeable {
492492
@param _to Contract to transfer ETH to
493493
*/
494494
function moveLockedEth(address _to) external onlyOwner {
495-
string memory ethName = "btp-0x38.bsc-eth";
495+
string memory ethName = "btp-0x38.bsc-ETH";
496496
address ethAddr = coins[ethName];
497497
uint256 balance = IERC20Tradable(ethAddr).balanceOf(address(this));
498498
IERC20(ethAddr).transfer(_to, balance);

0 commit comments

Comments
 (0)