We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21207b1 commit 1bc6313Copy full SHA for 1bc6313
packages/plugin-evm/src/providers/wallet.ts
@@ -198,7 +198,7 @@ const genChainsFromRuntime = (
198
export const initWalletProvider = (runtime: IAgentRuntime) => {
199
const privateKey = runtime.getSetting("EVM_PRIVATE_KEY");
200
if (!privateKey) {
201
- return null;
+ throw new Error("EVM_PRIVATE_KEY is missing")
202
}
203
204
const chains = genChainsFromRuntime(runtime);
0 commit comments