Update universalDapp.js

pull/5370/head
yann300 6 years ago committed by GitHub
parent 85e1577159
commit 0b45189087
  1. 4
      remix-lib/src/universalDapp.js

@ -47,7 +47,7 @@ UniversalDApp.prototype.resetEnvironment = function () {
executionContext.detectNetwork(cb) executionContext.detectNetwork(cb)
}, },
personalMode: () => { personalMode: () => {
return this.config.get('settings/personal-mode') return this._deps.config.get('settings/personal-mode')
} }
}) })
this.txRunner.event.register('transactionBroadcasted', (txhash) => { this.txRunner.event.register('transactionBroadcasted', (txhash) => {
@ -70,7 +70,7 @@ UniversalDApp.prototype.createVMAccount = function (privateKey, balance, cb) {
UniversalDApp.prototype.newAccount = function (password, passwordPromptCb, cb) { UniversalDApp.prototype.newAccount = function (password, passwordPromptCb, cb) {
if (!executionContext.isVM()) { if (!executionContext.isVM()) {
if (!this.config.get('settings/personal-mode')) { if (!this._deps.config.get('settings/personal-mode')) {
return cb('Not running in personal mode') return cb('Not running in personal mode')
} }
passwordPromptCb((passphrase) => { passwordPromptCb((passphrase) => {

Loading…
Cancel
Save