transactions#newUnapprovedTransaction - dont default origin to metamask

feature/default_network_editable
frankiebee 7 years ago
parent 03b123a85d
commit 3def45004a
  1. 2
      app/scripts/controllers/transactions.js

@ -161,7 +161,7 @@ module.exports = class TransactionController extends EventEmitter {
this.emit(`${txMeta.id}:unapproved`, txMeta) this.emit(`${txMeta.id}:unapproved`, txMeta)
} }
async newUnapprovedTransaction (txParams, opts = {origin: 'metamask'}) { async newUnapprovedTransaction (txParams, opts = {}) {
log.debug(`MetaMaskController newUnapprovedTransaction ${JSON.stringify(txParams)}`) log.debug(`MetaMaskController newUnapprovedTransaction ${JSON.stringify(txParams)}`)
const initialTxMeta = await this.addUnapprovedTransaction(txParams) const initialTxMeta = await this.addUnapprovedTransaction(txParams)
initialTxMeta.origin = opts.origin initialTxMeta.origin = opts.origin

Loading…
Cancel
Save