|
13 | 13 | #include <gtest/gtest.h> |
14 | 14 |
|
15 | 15 |
|
16 | | -TEST(TWTomoChainCoinType, TWCoinType) { |
17 | | - auto symbol = WRAPS(TWCoinTypeConfigurationGetSymbol(TWCoinTypeTomoChain)); |
| 16 | +TEST(TWVictionType, TWCoinType) { |
| 17 | + auto symbol = WRAPS(TWCoinTypeConfigurationGetSymbol(TWCoinTypeViction)); |
18 | 18 | auto txId = WRAPS(TWStringCreateWithUTF8Bytes("0x35a8d3ab06c94d5b7d27221b7c9a24ba3f1710dd0fcfd75c5d59b3a885fd709b")); |
19 | | - auto txUrl = WRAPS(TWCoinTypeConfigurationGetTransactionURL(TWCoinTypeTomoChain, txId.get())); |
| 19 | + auto txUrl = WRAPS(TWCoinTypeConfigurationGetTransactionURL(TWCoinTypeViction, txId.get())); |
20 | 20 | auto accId = WRAPS(TWStringCreateWithUTF8Bytes("0x86cCbD9bfb371c355202086882bC644A7D0b024B")); |
21 | | - auto accUrl = WRAPS(TWCoinTypeConfigurationGetAccountURL(TWCoinTypeTomoChain, accId.get())); |
22 | | - auto id = WRAPS(TWCoinTypeConfigurationGetID(TWCoinTypeTomoChain)); |
23 | | - auto name = WRAPS(TWCoinTypeConfigurationGetName(TWCoinTypeTomoChain)); |
| 21 | + auto accUrl = WRAPS(TWCoinTypeConfigurationGetAccountURL(TWCoinTypeViction, accId.get())); |
| 22 | + auto id = WRAPS(TWCoinTypeConfigurationGetID(TWCoinTypeViction)); |
| 23 | + auto name = WRAPS(TWCoinTypeConfigurationGetName(TWCoinTypeViction)); |
24 | 24 |
|
25 | | - ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(TWCoinTypeTomoChain), 18); |
26 | | - ASSERT_EQ(TWBlockchainEthereum, TWCoinTypeBlockchain(TWCoinTypeTomoChain)); |
27 | | - ASSERT_EQ(0x0, TWCoinTypeP2shPrefix(TWCoinTypeTomoChain)); |
28 | | - ASSERT_EQ(0x0, TWCoinTypeStaticPrefix(TWCoinTypeTomoChain)); |
29 | | - assertStringsEqual(symbol, "TOMO"); |
30 | | - assertStringsEqual(txUrl, "https://tomoscan.io/tx/0x35a8d3ab06c94d5b7d27221b7c9a24ba3f1710dd0fcfd75c5d59b3a885fd709b"); |
31 | | - assertStringsEqual(accUrl, "https://tomoscan.io/address/0x86cCbD9bfb371c355202086882bC644A7D0b024B"); |
32 | | - assertStringsEqual(id, "tomochain"); |
33 | | - assertStringsEqual(name, "TomoChain"); |
| 25 | + ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(TWCoinTypeViction), 18); |
| 26 | + ASSERT_EQ(TWBlockchainEthereum, TWCoinTypeBlockchain(TWCoinTypeViction)); |
| 27 | + ASSERT_EQ(0x0, TWCoinTypeP2shPrefix(TWCoinTypeViction)); |
| 28 | + ASSERT_EQ(0x0, TWCoinTypeStaticPrefix(TWCoinTypeViction)); |
| 29 | + assertStringsEqual(symbol, "VIC"); |
| 30 | + assertStringsEqual(txUrl, "https://www.vicscan.xyz/tx/0x35a8d3ab06c94d5b7d27221b7c9a24ba3f1710dd0fcfd75c5d59b3a885fd709b"); |
| 31 | + assertStringsEqual(accUrl, "https://www.vicscan.xyz/address/0x86cCbD9bfb371c355202086882bC644A7D0b024B"); |
| 32 | + assertStringsEqual(id, "viction"); |
| 33 | + assertStringsEqual(name, "Viction"); |
34 | 34 | } |
0 commit comments