Skip to content

Commit

Permalink
fix: remove polygon mumbai from supportedChains
Browse files Browse the repository at this point in the history
  • Loading branch information
MinHtet-O committed Apr 15, 2024
1 parent 3c5ec1f commit ab16d97
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 36 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"author": "",
"license": "Apache-2.0",
"dependencies": {
"@tradetrust-tt/tt-verify": "^8.9.1"
"@tradetrust-tt/tt-verify": "^8.9.2"
},
"devDependencies": {
"@commitlint/cli": "^18.6.1",
Expand Down
10 changes: 0 additions & 10 deletions src/constants/supportedChains.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,6 @@ describe("supportedChains", () => {
expect(explorerUrl).toBe("https://polygonscan.com");
});

it("should maticmum chain info correctly", () => {
const { id, name, type, currency, explorerUrl } = SUPPORTED_CHAINS[CHAIN_ID.maticmum];

expect(id).toBe(CHAIN_ID.maticmum);
expect(name).toBe("maticmum");
expect(type).toBe("test");
expect(currency).toBe("MATIC");
expect(explorerUrl).toBe("https://mumbai.polygonscan.com");
});

it("should get polygon amoy chain info correctly", () => {
const { id, name, type, currency, explorerUrl, rpcUrl } = SUPPORTED_CHAINS[CHAIN_ID.amoy];

Expand Down
17 changes: 0 additions & 17 deletions src/constants/supportedChains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export enum CHAIN_ID {
local = "1337",
mainnet = "1",
matic = "137",
maticmum = "80001",
amoy = "80002",
sepolia = "11155111",
xdc = "50",
Expand Down Expand Up @@ -72,22 +71,6 @@ export const SUPPORTED_CHAINS: supportedChains = {
decimals: 18,
},
},
[CHAIN_ID.maticmum]: {
id: CHAIN_ID.maticmum,
label: "Polygon Mumbai",
name: "maticmum",
type: "test",
currency: "MATIC",
iconImage: iconPolygon,
explorerUrl: "https://mumbai.polygonscan.com",
explorerApiUrl: "https://api-testnet.polygonscan.com",
rpcUrl: "https://rpc-mumbai.matic.today",
nativeCurrency: {
name: "MATIC",
symbol: "mMATIC",
decimals: 18,
},
},
[CHAIN_ID.amoy]: {
id: CHAIN_ID.amoy,
label: "Polygon Amoy",
Expand Down

0 comments on commit ab16d97

Please sign in to comment.