Skip to content

Commit

Permalink
fix: safe tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisht13 committed May 22, 2024
1 parent 3f826b6 commit 68e7082
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/safe_tracker/src/safe_tracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ import express from "express";
// Imports the Alchemy SDK
const { Alchemy, Network } = require("alchemy-sdk");
import { config as dotenvConfig } from "dotenv";
import fetch from "node-fetch";
dotenvConfig();

const fetch = async (...args: Parameters<typeof import("node-fetch").default>) => {
const module = await import("node-fetch");
return module.default(...args);
};

// Configures the Alchemy SDK
const config = {
apiKey: process.env.ALCHEMY_API_KEY, // API key is read from environment variables
Expand Down

0 comments on commit 68e7082

Please sign in to comment.