fix metamask loading and notification

pull/5370/head
bunsenstraat 2 years ago
parent bda7aed7bf
commit 4676ba47a9
  1. 2
      apps/remix-ide/src/blockchain/execution-context.js
  2. 2
      package.json

@ -156,7 +156,7 @@ export class ExecutionContext {
return cb() return cb()
} else { } else {
if (injectedProvider && injectedProvider._metamask && injectedProvider._metamask.isUnlocked) { if (injectedProvider && injectedProvider._metamask && injectedProvider._metamask.isUnlocked) {
if (!await injectedProvider._metamask.isUnlocked()) this.call('notification', 'toast', 'Please make sure the injected provider is unlocked (e.g Metamask).') if (!await injectedProvider._metamask.isUnlocked()) infoCb('Please make sure the injected provider is unlocked (e.g Metamask).')
} }
this.askPermission() this.askPermission()
this.executionContext = context this.executionContext = context

@ -211,7 +211,7 @@
"time-stamp": "^2.2.0", "time-stamp": "^2.2.0",
"ts-loader": "^9.2.6", "ts-loader": "^9.2.6",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"web3": "^1.5.1", "web3": "^1.7.5",
"winston": "^3.3.3", "winston": "^3.3.3",
"ws": "^7.3.0" "ws": "^7.3.0"
}, },

Loading…
Cancel
Save