Skip to content

Commit 8c15447

Browse files
committed
fix: remove duplicated import
1 parent 5e7efb0 commit 8c15447

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/plugin-evm/src/providers/wallet.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { formatUnits } from "viem";
1+
import {
2+
createPublicClient,
3+
createWalletClient,
4+
formatUnits,
5+
http,
6+
} from "viem";
27
import { privateKeyToAccount } from "viem/accounts";
38
import type { IAgentRuntime, Provider, Memory, State } from "@ai16z/eliza";
49
import type {
@@ -11,7 +16,6 @@ import type {
1116
PrivateKeyAccount,
1217
} from "viem";
1318
import * as viemChains from "viem/chains";
14-
import { privateKeyToAccount } from "viem/accounts";
1519

1620
import type { SupportedChain } from "../types";
1721

@@ -196,7 +200,7 @@ const genChainsFromRuntime = (
196200
export const initWalletProvider = (runtime: IAgentRuntime) => {
197201
const privateKey = runtime.getSetting("EVM_PRIVATE_KEY");
198202
if (!privateKey) {
199-
throw new Error("EVM_PRIVATE_KEY is missing")
203+
throw new Error("EVM_PRIVATE_KEY is missing");
200204
}
201205

202206
const chains = genChainsFromRuntime(runtime);

0 commit comments

Comments
 (0)