Skip to content

Commit

Permalink
Merge pull request #17 from oasisprotocol/matevz/fix/eth-requestaccounts
Browse files Browse the repository at this point in the history
frontend: Use eth_requestAccounts instead of eth_accounts
  • Loading branch information
matevz authored Jul 4, 2024
2 parents e0f714b + a20682e commit 0a77e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/stores/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const useEthereumStore = defineStore('ethereum', () => {
const eth = await getEthereumProvider();

const accounts: string[] = (await (eth.request?.({
method: 'eth_accounts',
method: 'eth_requestAccounts',
}) || Promise.resolve([]))) as string[];

if (!accounts || accounts?.length <= 0) {
Expand Down

0 comments on commit 0a77e5a

Please sign in to comment.