if(!await(windowasany).ethereum._metamask.isUnlocked())this.call('notification','toast','Please make sure the injected provider is unlocked (e.g Metamask).')
@ -155,6 +155,9 @@ export class ExecutionContext {
infoCb('No injected Web3 provider found. Make sure your provider (e.g. MetaMask) is active and running (when recently activated you may have to reload the page).')
infoCb('No injected Web3 provider found. Make sure your provider (e.g. MetaMask) is active and running (when recently activated you may have to reload the page).')
if(!awaitinjectedProvider._metamask.isUnlocked())this.call('notification','toast','Please make sure the injected provider is unlocked (e.g Metamask).')
}
this.askPermission()
this.askPermission()
this.executionContext=context
this.executionContext=context
web3.setProvider(injectedProvider)
web3.setProvider(injectedProvider)
@ -166,11 +169,21 @@ export class ExecutionContext {
<ahref="https://remix-ide.readthedocs.io/en/latest/run.html#environment"target="_blank"rel="noreferrer"><iclassName="udapp_infoDeployAction ml-2 fas fa-info"title="Click for docs about Environment"></i></a>
<ahref="https://remix-ide.readthedocs.io/en/latest/run.html#environment"target="_blank"rel="noreferrer"><iclassName="udapp_infoDeployAction ml-2 fas fa-info"title="Click for docs about Environment"></i></a>