*Add dummy handlers for eth_accounts and eth_requestAccounts

This commit is contained in:
Derrick Hammer 2023-03-27 15:22:32 -04:00
parent a473dfdad5
commit b39af76606
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 6 additions and 0 deletions

View File

@ -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],