File tree 1 file changed +7
-3
lines changed
packages/plugin-evm/src/providers
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
- import { formatUnits } from "viem" ;
1
+ import {
2
+ createPublicClient ,
3
+ createWalletClient ,
4
+ formatUnits ,
5
+ http ,
6
+ } from "viem" ;
2
7
import { privateKeyToAccount } from "viem/accounts" ;
3
8
import type { IAgentRuntime , Provider , Memory , State } from "@ai16z/eliza" ;
4
9
import type {
@@ -11,7 +16,6 @@ import type {
11
16
PrivateKeyAccount ,
12
17
} from "viem" ;
13
18
import * as viemChains from "viem/chains" ;
14
- import { privateKeyToAccount } from "viem/accounts" ;
15
19
16
20
import type { SupportedChain } from "../types" ;
17
21
@@ -196,7 +200,7 @@ const genChainsFromRuntime = (
196
200
export const initWalletProvider = ( runtime : IAgentRuntime ) => {
197
201
const privateKey = runtime . getSetting ( "EVM_PRIVATE_KEY" ) ;
198
202
if ( ! privateKey ) {
199
- throw new Error ( "EVM_PRIVATE_KEY is missing" )
203
+ throw new Error ( "EVM_PRIVATE_KEY is missing" ) ;
200
204
}
201
205
202
206
const chains = genChainsFromRuntime ( runtime ) ;
You can’t perform that action at this time.
0 commit comments