Skip to content

Commit b74062d

Browse files
authored
Merge pull request #3500 from ethereum/yann300-patch-51
No need to request access in async
2 parents de8abf2 + 797ae43 commit b74062d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

apps/remix-ide/src/app/providers/injected-provider.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export class InjectedProvider extends Plugin implements IProvider {
6060
return resolve({ jsonrpc: '2.0', error: 'no injected provider found', id: data.id })
6161
}
6262
try {
63-
if ((window as any) && typeof (window as any).ethereum.request === "function") (window as any).ethereum.request({ method: "eth_requestAccounts" });
6463
let resultData = await this.provider.currentProvider.send(data.method, data.params)
6564
if (resultData) {
6665
if (resultData.jsonrpc && resultData.jsonrpc === '2.0') {

0 commit comments

Comments
 (0)