Skip to content

Commit

Permalink
[Greenfield]: Update to mainnet (#3484)
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshiotomakan authored Oct 13, 2023
1 parent fb69cf8 commit c5ead67
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -4148,7 +4148,7 @@
"coinId": 5600,
"symbol": "BNB",
"decimals": 18,
"chainId": "5600",
"chainId": "9000",
"blockchain": "Greenfield",
"derivation": [
{
Expand All @@ -4162,8 +4162,8 @@
"url": "https://greenfieldscan.com",
"txPath": "/tx/",
"accountPath": "/account/",
"sampleTx": "9F895CF2DD64FB1F428CEFCF2A6585A813C3540FC9FE1EF42DB1DA2CB1DF55AB",
"sampleAccount": "0x9d1d97adfcd324bbd603d3872bd78e04098510b1"
"sampleTx": "0x150eac42070957115fd538b1f348fadd78d710fb641c248120efcf35d1e7e4f3",
"sampleAccount": "0xcf0f6b88ed72653b00fdebbffc90b98072cb3285"
},
"info": {
"url": "https://greenfield.bnbchain.org",
Expand Down
2 changes: 1 addition & 1 deletion samples/kmp/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation("com.trustwallet:wallet-core-kotlin:3.2.20")
implementation("com.trustwallet:wallet-core-kotlin:3.2.21")
}
}
val commonTest by getting {
Expand Down
10 changes: 5 additions & 5 deletions tests/chains/Greenfield/TWCoinTypeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ TEST(TWGreenfieldCoinType, TWCoinType) {
const auto id = WRAPS(TWCoinTypeConfigurationGetID(coin));
const auto name = WRAPS(TWCoinTypeConfigurationGetName(coin));
const auto chainId = WRAPS(TWCoinTypeChainId(coin));
const auto txId = WRAPS(TWStringCreateWithUTF8Bytes("9F895CF2DD64FB1F428CEFCF2A6585A813C3540FC9FE1EF42DB1DA2CB1DF55AB"));
const auto txId = WRAPS(TWStringCreateWithUTF8Bytes("0x150eac42070957115fd538b1f348fadd78d710fb641c248120efcf35d1e7e4f3"));
const auto txUrl = WRAPS(TWCoinTypeConfigurationGetTransactionURL(coin, txId.get()));
const auto accId = WRAPS(TWStringCreateWithUTF8Bytes("0x9d1d97adfcd324bbd603d3872bd78e04098510b1"));
const auto accId = WRAPS(TWStringCreateWithUTF8Bytes("0xcf0f6b88ed72653b00fdebbffc90b98072cb3285"));
const auto accUrl = WRAPS(TWCoinTypeConfigurationGetAccountURL(coin, accId.get()));

assertStringsEqual(id, "greenfield");
Expand All @@ -31,7 +31,7 @@ TEST(TWGreenfieldCoinType, TWCoinType) {
ASSERT_EQ(TWCoinTypeBlockchain(coin), TWBlockchainGreenfield);
ASSERT_EQ(TWCoinTypeP2shPrefix(coin), 0x0);
ASSERT_EQ(TWCoinTypeStaticPrefix(coin), 0x0);
assertStringsEqual(chainId, "5600");
assertStringsEqual(txUrl, "https://greenfieldscan.com/tx/9F895CF2DD64FB1F428CEFCF2A6585A813C3540FC9FE1EF42DB1DA2CB1DF55AB");
assertStringsEqual(accUrl, "https://greenfieldscan.com/account/0x9d1d97adfcd324bbd603d3872bd78e04098510b1");
assertStringsEqual(chainId, "9000");
assertStringsEqual(txUrl, "https://greenfieldscan.com/tx/0x150eac42070957115fd538b1f348fadd78d710fb641c248120efcf35d1e7e4f3");
assertStringsEqual(accUrl, "https://greenfieldscan.com/account/0xcf0f6b88ed72653b00fdebbffc90b98072cb3285");
}

0 comments on commit c5ead67

Please sign in to comment.