Skip to content

Commit

Permalink
Replace depricated method
Browse files Browse the repository at this point in the history
  • Loading branch information
samuveth committed Jul 19, 2022
1 parent eb83a2a commit 5d33755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connectors/injected.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default class Connector extends LockConnector {
if (window['ethereum']) {
provider = window['ethereum'];
try {
await window['ethereum'].enable();
await window['ethereum'].request({ method: 'eth_requestAccounts' })
} catch (e) {
console.error(e);
if (e.code === 4001) return;
Expand Down

0 comments on commit 5d33755

Please sign in to comment.