diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-10-04 20:03:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-04 20:03:00 +0800 |
commit | 67136a54b2f683f128f35c67895e051a09128ecd (patch) | |
tree | 3ff41c024eea364427a14d731e35e27b9e560d86 /app | |
parent | a52c497ad10a980ec9e84e1a9dcc5122c236bcc2 (diff) | |
parent | da611eb3a12a40aba09517c7c8121f9684111e0a (diff) | |
download | tangerine-wallet-browser-67136a54b2f683f128f35c67895e051a09128ecd.tar tangerine-wallet-browser-67136a54b2f683f128f35c67895e051a09128ecd.tar.gz tangerine-wallet-browser-67136a54b2f683f128f35c67895e051a09128ecd.tar.bz2 tangerine-wallet-browser-67136a54b2f683f128f35c67895e051a09128ecd.tar.lz tangerine-wallet-browser-67136a54b2f683f128f35c67895e051a09128ecd.tar.xz tangerine-wallet-browser-67136a54b2f683f128f35c67895e051a09128ecd.tar.zst tangerine-wallet-browser-67136a54b2f683f128f35c67895e051a09128ecd.zip |
Merge pull request #692 from MetaMask/ParityFix
Improve popup behavior for tx errors
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/metamask-controller.js | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 9e1a885ae..03082013a 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -203,26 +203,15 @@ module.exports = class MetamaskController { newUnsignedTransaction (txParams, onTxDoneCb) { const idStore = this.idStore - var state = idStore.getState() let err = this.enforceTxValidations(txParams) if (err) return onTxDoneCb(err) - // It's locked - if (!state.isUnlocked) { - - // Allow the environment to define an unlock message. - this.opts.unlockAccountMessage() - idStore.addUnconfirmedTransaction(txParams, onTxDoneCb, noop) - - // It's unlocked - } else { - idStore.addUnconfirmedTransaction(txParams, onTxDoneCb, (err, txData) => { - if (err) return onTxDoneCb(err) - this.sendUpdate() - this.opts.showUnconfirmedTx(txParams, txData, onTxDoneCb) - }) - } + idStore.addUnconfirmedTransaction(txParams, onTxDoneCb, (err, txData) => { + if (err) return onTxDoneCb(err) + this.sendUpdate() + this.opts.showUnconfirmedTx(txParams, txData, onTxDoneCb) + }) } enforceTxValidations (txParams) { @@ -353,4 +342,3 @@ module.exports = class MetamaskController { } } -function noop () {} |