Skip to content

Commit

Permalink
More fix on blockchain types (trustwallet#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
hewigovens authored May 20, 2019
1 parent 751ea2c commit 9b80666
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .codebeatignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
codegen/**
tools/**
6 changes: 3 additions & 3 deletions coins.json
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@
"name": "NEO",
"symbol": "NEO",
"decimals": 8,
"blockchain": "Ontology",
"blockchain": "NEO",
"derivationPath": "m/44'/888'/0'/0'/0'",
"curve": "nist256p1",
"publicKeyType": "nist256p1",
Expand All @@ -444,7 +444,7 @@
"name": "NULS",
"symbol": "NULS",
"decimals": 8,
"blockchain": "Bitcoin",
"blockchain": "NULS",
"derivationPath": "m/44'/8964'/0'/0/0",
"curve": "secp256k1",
"publicKeyType": "secp256k1",
Expand Down Expand Up @@ -507,7 +507,7 @@
"name": "Steem",
"symbol": "STEEM",
"decimals": 3,
"blockchain": "EOS",
"blockchain": "Steem",
"derivationPath": "m/44'/135'/0'/0/0",
"curve": "secp256k1",
"publicKeyType": "secp256k1",
Expand Down
3 changes: 3 additions & 0 deletions include/TrustWalletCore/TWBlockchain.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ enum TWBlockchain {
TWBlockchainIOST = 19,
TWBlockchainSemux = 20,
TWBlockchainNano = 21,
TWBlockchainNEO = 22,
TWBlockchainSteem = 23,
TWBlockchainNULS = 24,
};

TW_EXTERN_C_END
7 changes: 4 additions & 3 deletions tests/interface/TWCoinTypeConfigTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,11 +556,12 @@ TEST(TWCoinTypeConfiguration, TWCoinTypeBlockchain) {
ASSERT_EQ(TWBlockchainEthereum, TWCoinTypeBlockchain(TWCoinTypeEthereum));
ASSERT_EQ(TWBlockchainIoTeX, TWCoinTypeBlockchain(TWCoinTypeIoTeX));
ASSERT_EQ(TWBlockchainArk, TWCoinTypeBlockchain(TWCoinTypeARK));
ASSERT_EQ(TWBlockchainOntology, TWCoinTypeBlockchain(TWCoinTypeNEO));
ASSERT_EQ(TWBlockchainOntology, TWCoinTypeBlockchain(TWCoinTypeOntology));
ASSERT_EQ(TWBlockchainNEO, TWCoinTypeBlockchain(TWCoinTypeNEO));
ASSERT_EQ(TWBlockchainIOST, TWCoinTypeBlockchain(TWCoinTypeIOST));
ASSERT_EQ(TWBlockchainBitcoin, TWCoinTypeBlockchain(TWCoinTypeNULS));
ASSERT_EQ(TWBlockchainNULS, TWCoinTypeBlockchain(TWCoinTypeNULS));
ASSERT_EQ(TWBlockchainEOS, TWCoinTypeBlockchain(TWCoinTypeEOS));
ASSERT_EQ(TWBlockchainEOS, TWCoinTypeBlockchain(TWCoinTypeSteem));
ASSERT_EQ(TWBlockchainSteem, TWCoinTypeBlockchain(TWCoinTypeSteem));
ASSERT_EQ(TWBlockchainEOS, TWCoinTypeBlockchain(TWCoinTypeBravoCoin));
ASSERT_EQ(TWBlockchainNano, TWCoinTypeBlockchain(TWCoinTypeNano));
ASSERT_EQ(TWBlockchainSemux, TWCoinTypeBlockchain(TWCoinTypeSemux));
Expand Down

0 comments on commit 9b80666

Please sign in to comment.