Skip to content

Commit 9fc4b0e

Browse files
committedDec 11, 2024
fix: throw if evm private key is missing
1 parent ee43b45 commit 9fc4b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ const genChainsFromRuntime = (
196196
export const initWalletProvider = (runtime: IAgentRuntime) => {
197197
const privateKey = runtime.getSetting("EVM_PRIVATE_KEY");
198198
if (!privateKey) {
199-
return null;
199+
throw new Error("EVM_PRIVATE_KEY is missing")
200200
}
201201

202202
const chains = genChainsFromRuntime(runtime);

0 commit comments

Comments
 (0)
Please sign in to comment.