From f052436bc13abcbb35992778643b49e7c5d6288f Mon Sep 17 00:00:00 2001 From: yu23ki14 Date: Thu, 3 Oct 2024 20:10:59 +0900 Subject: [PATCH] tmp --- pkgs/cli/src/services/wallet.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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([]));