Skip to content

Commit

Permalink
fix: revert to use without process.env (#39)
Browse files Browse the repository at this point in the history
* fix: revert to use without process.env

* fix: test case
  • Loading branch information
isaackps authored Mar 12, 2024
1 parent c3b923a commit 0a80824
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/constants/supportedChains.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe("supportedChains", () => {
expect(type).toBe("test");
expect(currency).toBe("MATIC");
expect(explorerUrl).toBe("https://www.oklink.com/amoy");
expect(rpcUrl).toContain("https://polygon-amoy.infura.io/v3/");
expect(rpcUrl).toBe("https://rpc-amoy.polygon.technology/");
});

it("should sepolia chain info correctly", () => {
Expand Down
3 changes: 1 addition & 2 deletions src/constants/supportedChains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ export const SUPPORTED_CHAINS: supportedChains = {
currency: "MATIC",
iconImage: iconPolygon,
explorerUrl: "https://www.oklink.com/amoy",
explorerApiUrl: `https://www.oklink.com/${process.env.OKLINK_API_KEY}`,
rpcUrl: `https://polygon-amoy.infura.io/v3/${process.env.INFURA_API_KEY}`,
rpcUrl: "https://rpc-amoy.polygon.technology/",
nativeCurrency: {
name: "MATIC",
symbol: "aMATIC",
Expand Down

0 comments on commit 0a80824

Please sign in to comment.