Skip to content

Commit

Permalink
feat(polygonzkevm): fix cointype (#3039)
Browse files Browse the repository at this point in the history
  • Loading branch information
Milerius authored Mar 29, 2023
1 parent af3a6c2 commit 9d347d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/TrustWalletCore/TWCoinType.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ enum TWCoinType {
TWCoinTypeAgoric = 564,
TWCoinTypeTON = 607,
TWCoinTypeSui = 784,
TWCoinTypePolygonzkEVM = 10001422,
TWCoinTypeStargaze = 20000118,
TWCoinTypePolygonzkEVM = 10001101,
};

/// Returns the blockchain for a coin type.
Expand Down
1 change: 1 addition & 0 deletions tests/chains/PolygonZkEvm/TWCoinTypeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ TEST(TWPolygonZkEVMCoinType, TWCoinType) {
ASSERT_EQ(TWCoinTypeBlockchain(coin), TWBlockchainEthereum);
ASSERT_EQ(TWCoinTypeP2shPrefix(coin), 0x0);
ASSERT_EQ(TWCoinTypeStaticPrefix(coin), 0x0);
ASSERT_EQ(coin, 10001101ull);
assertStringsEqual(chainId, "1101");
assertStringsEqual(txUrl, "https://zkevm.polygonscan.com/tx/0xc70fd1a45b3130f5515a27d96f01a7f508099fb0b8af52ef432d5e4b2373dccd");
assertStringsEqual(accUrl, "https://zkevm.polygonscan.com/address/0x81d98c8fda0410ee3e9d7586cb949cd19fa4cf38");
Expand Down

0 comments on commit 9d347d3

Please sign in to comment.