Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
yu23ki14 committed Oct 3, 2024
1 parent 2647982 commit f052436
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/cli/src/services/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ 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 {
name: string;
privateKey: Hex;
}

const profilesPath = path.join(__dirname, "profiles.json");

export const getProfiles = () => {
if (!existsSync(profilesPath)) {
writeFileSync(profilesPath, JSON.stringify([]));
Expand Down

0 comments on commit f052436

Please sign in to comment.