Skip to content

Commit

Permalink
[Sui]: Update block explorer (#4204)
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshiotomakan authored Jan 10, 2025
1 parent 3fd969a commit c764e15
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -709,11 +709,11 @@
"curve": "ed25519",
"publicKeyType": "ed25519",
"explorer": {
"url": "https://explorer.sui.io/",
"txPath": "/txblock/",
"accountPath": "/address/",
"sampleTx": "5i8fbSL6r8yw2xcKmXxwkzHu3wpiyMLsyf2htCvDH8Ao",
"sampleAccount": "0x259ff8074ab425cbb489f236e18e08f03f1a7856bdf7c7a2877bd64f738b5015"
"url": "https://suiscan.xyz/mainnet",
"txPath": "/tx/",
"accountPath": "/account/",
"sampleTx": "68wBKsZyYXmCUydDmabQ71kTcFWTfDG7tFmTLk1HgNdN",
"sampleAccount": "0x54e80d76d790c277f5a44f3ce92f53d26f5894892bf395dee6375988876be6b2"
},
"info": {
"url": "https://sui.io/",
Expand Down
8 changes: 4 additions & 4 deletions tests/chains/Sui/TWCoinTypeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ TEST(TWSuiCoinType, TWCoinType) {
const auto symbol = WRAPS(TWCoinTypeConfigurationGetSymbol(coin));
const auto id = WRAPS(TWCoinTypeConfigurationGetID(coin));
const auto name = WRAPS(TWCoinTypeConfigurationGetName(coin));
const auto txId = WRAPS(TWStringCreateWithUTF8Bytes("5i8fbSL6r8yw2xcKmXxwkzHu3wpiyMLsyf2htCvDH8Ao"));
const auto txId = WRAPS(TWStringCreateWithUTF8Bytes("68wBKsZyYXmCUydDmabQ71kTcFWTfDG7tFmTLk1HgNdN"));
const auto txUrl = WRAPS(TWCoinTypeConfigurationGetTransactionURL(coin, txId.get()));
const auto accId = WRAPS(TWStringCreateWithUTF8Bytes("0x259ff8074ab425cbb489f236e18e08f03f1a7856bdf7c7a2877bd64f738b5015"));
const auto accId = WRAPS(TWStringCreateWithUTF8Bytes("0x54e80d76d790c277f5a44f3ce92f53d26f5894892bf395dee6375988876be6b2"));
const auto accUrl = WRAPS(TWCoinTypeConfigurationGetAccountURL(coin, accId.get()));

assertStringsEqual(id, "sui");
assertStringsEqual(name, "Sui");
assertStringsEqual(symbol, "SUI");
ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(coin), 9);
ASSERT_EQ(TWCoinTypeBlockchain(coin), TWBlockchainSui);
assertStringsEqual(txUrl, "https://explorer.sui.io//txblock/5i8fbSL6r8yw2xcKmXxwkzHu3wpiyMLsyf2htCvDH8Ao");
assertStringsEqual(accUrl, "https://explorer.sui.io//address/0x259ff8074ab425cbb489f236e18e08f03f1a7856bdf7c7a2877bd64f738b5015");
assertStringsEqual(txUrl, "https://suiscan.xyz/mainnet/tx/68wBKsZyYXmCUydDmabQ71kTcFWTfDG7tFmTLk1HgNdN");
assertStringsEqual(accUrl, "https://suiscan.xyz/mainnet/account/0x54e80d76d790c277f5a44f3ce92f53d26f5894892bf395dee6375988876be6b2");
}

0 comments on commit c764e15

Please sign in to comment.