We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 176da2f commit 01c01d5Copy full SHA for 01c01d5
scripts/genTokenMap.ts
@@ -20,8 +20,11 @@ async function generateTokenMapJson(
20
): Promise<void> {
21
dotenv.config();
22
const { DUNE_API_KEY } = process.env;
23
+ if (!DUNE_API_KEY) {
24
+ throw new Error("DUNE_API_KEY is not set");
25
+ }
26
- const dune = new DuneClient(DUNE_API_KEY ?? "");
27
+ const dune = new DuneClient(DUNE_API_KEY);
28
const queryId = 4362544;
29
const csv = useLatestResults
30
? await dune.exec.getLastResultCSV(queryId)
@@ -100,4 +103,4 @@ export async function loadTokenMapping(
100
103
});
101
104
}
102
105
-generateTokenMapJson(true).catch(console.error);
106
+generateTokenMapJson().catch(console.error);
0 commit comments