diff --git a/pkgs/cli/src/services/wallet.ts b/pkgs/cli/src/services/wallet.ts index 6c4d388..e5b0408 100644 --- a/pkgs/cli/src/services/wallet.ts +++ b/pkgs/cli/src/services/wallet.ts @@ -2,7 +2,6 @@ import { existsSync, readFileSync, writeFileSync } from "fs"; import path from "path"; import { Hex } from "viem"; import { privateKeyToAccount, privateKeyToAddress } from "viem/accounts"; -const profilesPath = path.join(__dirname, "profiles.json"); import { setWallet } from "../modules/viem"; export interface Profile { @@ -10,6 +9,8 @@ export interface Profile { privateKey: Hex; } +const profilesPath = path.join(__dirname, "profiles.json"); + export const getProfiles = () => { if (!existsSync(profilesPath)) { writeFileSync(profilesPath, JSON.stringify([]));