aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-12-07 11:20:11 +0800
committerDan Finlay <dan@danfinlay.com>2017-12-07 11:20:58 +0800
commit6ff580584a74c6d85f54ce7cfc500db822904957 (patch)
tree9352690d0f68bb33ab0bb409a97c29905bf20150 /app/scripts/controllers
parenta78cc013d199547ba865a0d1c2fec9a328ce7e0b (diff)
downloadtangerine-wallet-browser-6ff580584a74c6d85f54ce7cfc500db822904957.tar
tangerine-wallet-browser-6ff580584a74c6d85f54ce7cfc500db822904957.tar.gz
tangerine-wallet-browser-6ff580584a74c6d85f54ce7cfc500db822904957.tar.bz2
tangerine-wallet-browser-6ff580584a74c6d85f54ce7cfc500db822904957.tar.lz
tangerine-wallet-browser-6ff580584a74c6d85f54ce7cfc500db822904957.tar.xz
tangerine-wallet-browser-6ff580584a74c6d85f54ce7cfc500db822904957.tar.zst
tangerine-wallet-browser-6ff580584a74c6d85f54ce7cfc500db822904957.zip
Add retry background method and action
Diffstat (limited to 'app/scripts/controllers')
-rw-r--r--app/scripts/controllers/transactions.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js
index ce709bd28..67043b401 100644
--- a/app/scripts/controllers/transactions.js
+++ b/app/scripts/controllers/transactions.js
@@ -184,6 +184,10 @@ module.exports = class TransactionController extends EventEmitter {
return await this.txGasUtil.analyzeGasUsage(txMeta)
}
+ async retryTransaction (txId) {
+ return this.txStateManager.setTxStatusUnapproved(txId)
+ }
+
async updateAndApproveTransaction (txMeta) {
this.txStateManager.updateTx(txMeta, 'confTx: user approved transaction')
await this.approveTransaction(txMeta.id)