Skip to content

Commit d998206

Browse files
committed
fix gen keys
1 parent 1e83ddf commit d998206

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

scripts/generateKeys.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
import { writeFile } from "node:fs/promises";
2-
import { dirname, join } from "node:path";
3-
import { fileURLToPath } from "node:url";
2+
import { join } from "node:path";
43
import { generatePrivateKey } from "viem/accounts";
54
import { generateEncryptionKeyHex } from "@/helpers";
65

7-
const __dirname = dirname(fileURLToPath(import.meta.url));
8-
96
console.log("Generating keys...");
107

118
const walletKey = generatePrivateKey();
129
const encryptionKeyHex = generateEncryptionKeyHex();
1310

14-
const filePath = join(".", ".env");
11+
const filePath = join(process.cwd(), ".env");
1512

1613
await writeFile(
1714
filePath,

0 commit comments

Comments
 (0)