diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-10-06 02:55:23 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-10-06 02:55:23 +0800 |
commit | c5b7880f051b1ee47a9f8eecc6ea5c553f9efa6c (patch) | |
tree | 8b3ee94a666dd23aa9a3f9579abaf39939a0d161 /app | |
parent | e11ca1289019123cd143adcb6312186452630723 (diff) | |
parent | 35f4148343cf4400f7a38eef07282cae44cd0335 (diff) | |
download | tangerine-wallet-browser-c5b7880f051b1ee47a9f8eecc6ea5c553f9efa6c.tar tangerine-wallet-browser-c5b7880f051b1ee47a9f8eecc6ea5c553f9efa6c.tar.gz tangerine-wallet-browser-c5b7880f051b1ee47a9f8eecc6ea5c553f9efa6c.tar.bz2 tangerine-wallet-browser-c5b7880f051b1ee47a9f8eecc6ea5c553f9efa6c.tar.lz tangerine-wallet-browser-c5b7880f051b1ee47a9f8eecc6ea5c553f9efa6c.tar.xz tangerine-wallet-browser-c5b7880f051b1ee47a9f8eecc6ea5c553f9efa6c.tar.zst tangerine-wallet-browser-c5b7880f051b1ee47a9f8eecc6ea5c553f9efa6c.zip |
Merge branch 'master' into SignTypedData
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/pending-tx-tracker.js | 12 | ||||
-rw-r--r-- | app/scripts/metamask-controller.js | 1 |
2 files changed, 7 insertions, 6 deletions
diff --git a/app/scripts/lib/pending-tx-tracker.js b/app/scripts/lib/pending-tx-tracker.js index 3d358b00e..6f1601586 100644 --- a/app/scripts/lib/pending-tx-tracker.js +++ b/app/scripts/lib/pending-tx-tracker.js @@ -86,12 +86,15 @@ module.exports = class PendingTransactionTracker extends EventEmitter { // other || errorMessage.includes('gateway timeout') || errorMessage.includes('nonce too low') - || txMeta.retryCount > 1 ) // ignore resubmit warnings, return early if (isKnownTx) return // encountered real error - transition to error state - this.emit('tx:failed', txMeta.id, err) + txMeta.warning = { + error: errorMessage, + message: 'There was an error when resubmitting this transaction.', + } + this.emit('tx:warning', txMeta, err) })) } @@ -133,11 +136,10 @@ module.exports = class PendingTransactionTracker extends EventEmitter { } } catch (err) { txMeta.warning = { - error: err, + error: err.message, message: 'There was a problem loading this transaction.', } - this.emit('tx:warning', txMeta) - throw err + this.emit('tx:warning', txMeta, err) } } diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index fcd74e499..8f773a72b 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -224,7 +224,6 @@ module.exports = class MetamaskController extends EventEmitter { eth_syncing: false, web3_clientVersion: `MetaMask/v${version}`, }, - originHttpHeaderKey: 'X-Metamask-Origin', // account mgmt getAccounts: (cb) => { const isUnlocked = this.keyringController.memStore.getState().isUnlocked |