typo fix usage of api

pull/3094/head
yann300 6 years ago
parent fb61cc422d
commit 6843bcf867
  1. 2
      src/app.js
  2. 4
      src/universal-dapp.js

@ -283,7 +283,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
registry.put({api: udapp, name: 'udapp'}) registry.put({api: udapp, name: 'udapp'})
udapp.event.register('transactionBroadcasted', (txhash, networkName) => { udapp.event.register('transactionBroadcasted', (txhash, networkName) => {
var txLink = executionContext.txDetailsLink(networkName, txhash) var txLink = executionContext.txDetailsLink(networkName, txhash)
if (txLink) registry.get('logCallback').api.logCallback(yo`<a href="${txLink}" target="_blank">${txLink}</a>`) if (txLink) registry.get('logCallback').api(yo`<a href="${txLink}" target="_blank">${txLink}</a>`)
}) })
const udappUI = new UniversalDAppUI(udapp, registry) const udappUI = new UniversalDAppUI(udapp, registry)

@ -68,7 +68,7 @@ module.exports = class UniversalDApp extends UdappApi {
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) => {
@ -94,7 +94,7 @@ module.exports = class UniversalDApp extends UdappApi {
newAccount (password, passwordPromptCb, cb) { newAccount (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