From b16aae2437887554865a50bb4de7befd4b0091cd Mon Sep 17 00:00:00 2001 From: "shafu.eth" Date: Sun, 1 Jan 2023 22:49:11 +0100 Subject: [PATCH] fix import --- app.js | 2 +- utils/sleep.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index e905cef..f932b27 100644 --- a/app.js +++ b/app.js @@ -3,7 +3,7 @@ import Web3 from "web3"; import Contract from "web3-eth-contract"; import dNFT_ABI from "./abi/dNFT.json" assert { type: "json" }; import * as dotenv from "dotenv"; -import sleep from "./utils/sleep"; +import { sleep } from "./utils/sleep.js"; dotenv.config(); const SYNC_LOG_SIGNATURE = diff --git a/utils/sleep.js b/utils/sleep.js index 6dcc6ac..80237d5 100644 --- a/utils/sleep.js +++ b/utils/sleep.js @@ -1,3 +1,3 @@ -export default async function sleep(ms) { +export async function sleep(ms) { await new Promise((resolve) => setTimeout(resolve, ms)); }