Skip to content

Commit

Permalink
Remove TWCoinTypeTest (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
vikmeup authored and alejandro-isaza committed Feb 23, 2019
1 parent 4ad22cb commit 03942ca
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion include/TrustWalletCore/TWCoinType.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ enum TWCoinType {
TWCoinTypeICON = 74,
TWCoinTypeLitecoin = 2,
TWCoinTypePoa = 178,
TWCoinTypeTest = 1,
TWCoinTypeThunderToken = 1001,
TWCoinTypeTomoChain = 889,
TWCoinTypeTron = 195,
Expand Down
5 changes: 0 additions & 5 deletions src/interface/TWCoinTypeConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ TWString *_Nullable TWCoinTypeConfigurationGetSymbol(enum TWCoinType type) {
case TWCoinTypeICON: string = "ICX"; break;
case TWCoinTypeLitecoin: string = "LTC"; break;
case TWCoinTypePoa: string = "POA"; break;
case TWCoinTypeTest: string = "TEST"; break;
case TWCoinTypeThunderToken: string = "TT"; break;
case TWCoinTypeTomoChain: string = "TOMO"; break;
case TWCoinTypeTron: string = "TRX"; break;
Expand Down Expand Up @@ -67,7 +66,6 @@ int TWCoinTypeConfigurationGetDecimals(enum TWCoinType type) {
return 8;
case TWCoinTypeTron:
return 6;
case TWCoinTypeTest:
case TWCoinTypeEOS: //TODO
default:
return 0;
Expand Down Expand Up @@ -131,7 +129,6 @@ const char *explorerURLForCoinType(enum TWCoinType type) {
case TWCoinTypeICON: return "https://tracker.icon.foundation";
case TWCoinTypeLitecoin: return "https://blockchair.com/litecoin";
case TWCoinTypePoa: return "https://poaexplorer.com";
case TWCoinTypeTest: return "";
case TWCoinTypeThunderToken: return "https://scan.thundercore.com";
case TWCoinTypeTomoChain: return "https://scan.tomochain.com";
case TWCoinTypeTron: return "https://tronscan.org";
Expand Down Expand Up @@ -159,7 +156,6 @@ TWString *_Nonnull TWCoinTypeConfigurationGetID(enum TWCoinType type) {
case TWCoinTypeICON: string = "icon"; break;
case TWCoinTypeLitecoin: string = "litecoin"; break;
case TWCoinTypePoa: string = "poa"; break;
case TWCoinTypeTest: string = "test"; break;
case TWCoinTypeThunderToken: string = "thundertoken"; break;
case TWCoinTypeTomoChain: string = "tomochain"; break;
case TWCoinTypeTron: string = "tron"; break;
Expand Down Expand Up @@ -188,7 +184,6 @@ TWString *_Nonnull TWCoinTypeConfigurationGetName(enum TWCoinType type) {
case TWCoinTypeICON: string = "ICON"; break;
case TWCoinTypeLitecoin: string = "Litecoin"; break;
case TWCoinTypePoa: string = "POA Network"; break;
case TWCoinTypeTest: string = "Test"; break;
case TWCoinTypeThunderToken: string = "Thunder Token"; break;
case TWCoinTypeTomoChain: string = "TomoChain"; break;
case TWCoinTypeTron: string = "Tron"; break;
Expand Down
1 change: 0 additions & 1 deletion tests/TWCoinTypeConfigTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ TEST(TWCoinTypeConfiguration, TWCoinTypeConfigurationGetDecimals) {
ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(TWCoinTypeICON), 18);
ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(TWCoinTypeLitecoin), 8);
ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(TWCoinTypePoa), 18);
ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(TWCoinTypeTest), 0);
ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(TWCoinTypeThunderToken), 18);
ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(TWCoinTypeTomoChain), 18);
ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(TWCoinTypeTron), 6);
Expand Down

0 comments on commit 03942ca

Please sign in to comment.