Skip to content

Commit 1bc6313

Browse files
committed
fix: throw if evm private key is missing
1 parent 21207b1 commit 1bc6313

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
@@ -198,7 +198,7 @@ const genChainsFromRuntime = (
198198
export const initWalletProvider = (runtime: IAgentRuntime) => {
199199
const privateKey = runtime.getSetting("EVM_PRIVATE_KEY");
200200
if (!privateKey) {
201-
return null;
201+
throw new Error("EVM_PRIVATE_KEY is missing")
202202
}
203203

204204
const chains = genChainsFromRuntime(runtime);

0 commit comments

Comments
 (0)