From b39af766068c035c3d346d400c8ce85515beb737 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 27 Mar 2023 15:22:32 -0400 Subject: [PATCH] *Add dummy handlers for eth_accounts and eth_requestAccounts --- src/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.ts b/src/index.ts index 7ff725e..92324c6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,6 +24,8 @@ addHandler("presentSeed", handlePresentSeed); addHandler("ready", handleReady); [ + "eth_accounts", + "eth_requestAccounts", "eth_getBalance", "eth_chainId", "eth_blockNumber", @@ -56,6 +58,10 @@ async function handlePresentSeed() { async function handleRpcMethod(aq: ActiveQuery) { await moduleReady; switch (aq.callerInput?.method) { + case "eth_accounts": + case "eth_requestAccounts": { + return []; + } case "eth_getBalance": { return client.get_balance( aq.callerInput?.params[0],