Skip to content

Commit

Permalink
feat(ton): Fix C++ address analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshiotomakan committed Sep 10, 2024
1 parent c8f1261 commit 87695d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ This list is generated from [./registry.json](../registry.json)
| 10004689 | IoTeX EVM | IOTX | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/iotexevm/info/logo.png" width="32" /> | <https://iotex.io/> |
| 10007000 | NativeZetaChain | ZETA | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/zetachain/info/logo.png" width="32" /> | <https://www.zetachain.com/> |
| 10007700 | NativeCanto | CANTO | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/nativecanto/info/logo.png" width="32" /> | <https://canto.io/> |
| 10008217 | Kaia | KLAY | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/kaia/info/logo.png" width="32" /> | <https://kaia.io> |
| 10008217 | Kaia | KLAY | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/kaia/info/logo.png" width="32" /> | <https://kaia.io> |
| 10009000 | Avalanche C-Chain | AVAX | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/info/logo.png" width="32" /> | <https://www.avalabs.org/> |
| 10009001 | Evmos | EVMOS | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/evmos/info/logo.png" width="32" /> | <https://evmos.org/> |
| 10042170 | Arbitrum Nova | ETH | <img src="https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrumnova/info/logo.png" width="32" /> | <https://nova.arbitrum.io> |
Expand Down
2 changes: 1 addition & 1 deletion tests/common/Keystore/StoredKeyTONTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ TEST(StoredKeyTON, LoadTonMnemonic) {
EXPECT_EQ(key.name, "Test TON Account");

const auto data = key.payload.decrypt(gPassword);
const auto mnemonic = string(reinterpret_cast<const char*>(data.data()));
const auto mnemonic = string(reinterpret_cast<const char*>(data.data()), data.size());
EXPECT_EQ(mnemonic, gTONMnemonic);

EXPECT_EQ(key.accounts[0].coin, TWCoinTypeTON);
Expand Down
2 changes: 1 addition & 1 deletion tests/common/Keystore/StoredKeyTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ TEST(StoredKey, LoadLegacyMnemonic) {
EXPECT_EQ(key.id, "629aad29-0b22-488e-a0e7-b4219d4f311c");

const auto data = key.payload.decrypt(gPassword);
const auto mnemonic = string(reinterpret_cast<const char*>(data.data()));
const auto mnemonic = string(reinterpret_cast<const char*>(data.data()), data.size());
EXPECT_EQ(mnemonic, "ripple scissors kick mammal hire column oak again sun offer wealth tomorrow wagon turn back");

EXPECT_EQ(key.accounts[0].coin, TWCoinTypeEthereum);
Expand Down

0 comments on commit 87695d4

Please sign in to comment.