Skip to content

Commit c8e7151

Browse files
authored
Switch the API key running at capacity (#101)
1 parent e8df718 commit c8e7151

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/ethereum-viewer/src/explorer/fetchFiles.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ describe(fetchFiles.name, () => {
3535

3636
await fetchFiles("optimistic.etherscan", "0x0", { fetch: f });
3737

38-
const expected =
39-
"https://api-optimistic.etherscan.io/api?module=contract&action=getsourcecode&address=0x0&apikey=862Y3WJ4JB4B34PZQRFEV3IK6SZ8GNR9N5";
38+
const expectedPrefix =
39+
"https://api-optimistic.etherscan.io/api?module=contract&action=getsourcecode&address=0x0&apikey=";
4040

4141
assert(
42-
url === expected,
43-
`url should match expected value "${expected}", but instead received "${url}"`
42+
url?.startsWith(expectedPrefix),
43+
`url should start with "${expectedPrefix}", but instead received "${url}"`
4444
);
4545
});
4646

packages/ethereum-viewer/src/explorer/networks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const networkNames: Record<ApiName, string> = {
7070
"testnet.sonicscan": "sonicTestnet",
7171
};
7272

73-
const ETHERSCAN_KEY = "862Y3WJ4JB4B34PZQRFEV3IK6SZ8GNR9N5";
73+
const ETHERSCAN_KEY = "EC6W4PN52911I6RPSGFEH5IT7TEQQYU8H6";
7474
const OPTIMISM_KEY = "UF822UT1YY28J5EHFFIKI5SPN8752AC7VV";
7575
const BSCSCAN_KEY = "HFUM7BBA5MRUQCN5UMEQPUZBUPPRHIQT3Y";
7676
const FTMSCAN_KEY = "EH9NPZVF1HMNAQMAUZKA4VF7EC23X37DGS";

0 commit comments

Comments
 (0)