Skip to content

Commit

Permalink
return eoa accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Sep 26, 2024
1 parent 494bc65 commit f4ef9c7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ export function getProviderHandlers({
});

return {
getAccounts: async (_: JRPCRequest<unknown>) => [smartAccount.address],
getAccounts: async (_: JRPCRequest<unknown>) => {
const accounts = await eoaProvider.request<never, string[]>({ method: "eth_accounts" });
return [smartAccount.address, ...accounts];
},
getPrivateKey: async (_: JRPCRequest<unknown>) => {
throw providerErrors.custom({
message: "Smart accounts do not have private key",
Expand Down

0 comments on commit f4ef9c7

Please sign in to comment.