aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers/transactions.js
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-07-26 06:33:52 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-07-26 06:33:52 +0800
commit30cbe74ba69f2eaa5f79974dba47d8afba6ea97b (patch)
treee759089aca54bca0c15d5e426b912b3be9fa9647 /app/scripts/controllers/transactions.js
parentba88f7b8dd32b6ffdb46e70b8c9fbd563bb53b69 (diff)
parenta929fb2387de87619192ea0a86fe1ead4f7a0361 (diff)
downloadtangerine-wallet-browser-30cbe74ba69f2eaa5f79974dba47d8afba6ea97b.tar.gz
tangerine-wallet-browser-30cbe74ba69f2eaa5f79974dba47d8afba6ea97b.tar.zst
tangerine-wallet-browser-30cbe74ba69f2eaa5f79974dba47d8afba6ea97b.zip
Merge branch 'betterErrorsOnTx' of https://github.com/MetaMask/metamask-extension into betterErrorsOnTx
Diffstat (limited to 'app/scripts/controllers/transactions.js')
-rw-r--r--app/scripts/controllers/transactions.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js
index 263424518..5f2d75b47 100644
--- a/app/scripts/controllers/transactions.js
+++ b/app/scripts/controllers/transactions.js
@@ -469,7 +469,7 @@ module.exports = class TransactionController extends EventEmitter {
}))
}
- async _resubmitTx (txMeta, cb) {
+ async _resubmitTx (txMeta) {
const address = txMeta.txParams.from
const balance = this.ethStore.getState().accounts[address].balance
if (!('retryCount' in txMeta)) txMeta.retryCount = 0
@@ -481,17 +481,17 @@ module.exports = class TransactionController extends EventEmitter {
stack: '_resubmitTx: custom tx-controller error',
message,
})
- cb()
- return log.error(message)
+ log.error(message)
+ return
}
// Only auto-submit already-signed txs:
- if (!('rawTx' in txMeta)) return cb()
+ if (!('rawTx' in txMeta)) return
// Increment a try counter.
txMeta.retryCount++
const rawTx = txMeta.rawTx
- return await this.txProviderUtils.publishTransaction(rawTx, cb)
+ return await this.txProviderUtils.publishTransaction(rawTx)
}
// checks the network for signed txs and