diff options
author | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2017-12-07 16:44:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-07 16:44:56 +0800 |
commit | a2057a8d295f0c21bf3d459eaba6d205271c1753 (patch) | |
tree | 185c3e82c54bc5ba9be9a88b10337f71a5add8b1 /app/scripts/controllers/transactions.js | |
parent | a78cc013d199547ba865a0d1c2fec9a328ce7e0b (diff) | |
parent | 706a07d0e9f3a7cc443ba6b797bf548e19065496 (diff) | |
download | tangerine-wallet-browser-a2057a8d295f0c21bf3d459eaba6d205271c1753.tar tangerine-wallet-browser-a2057a8d295f0c21bf3d459eaba6d205271c1753.tar.gz tangerine-wallet-browser-a2057a8d295f0c21bf3d459eaba6d205271c1753.tar.bz2 tangerine-wallet-browser-a2057a8d295f0c21bf3d459eaba6d205271c1753.tar.lz tangerine-wallet-browser-a2057a8d295f0c21bf3d459eaba6d205271c1753.tar.xz tangerine-wallet-browser-a2057a8d295f0c21bf3d459eaba6d205271c1753.tar.zst tangerine-wallet-browser-a2057a8d295f0c21bf3d459eaba6d205271c1753.zip |
Merge pull request #2684 from MetaMask/RetryTransaction
Retry transaction
Diffstat (limited to 'app/scripts/controllers/transactions.js')
-rw-r--r-- | app/scripts/controllers/transactions.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js index ce709bd28..685db6269 100644 --- a/app/scripts/controllers/transactions.js +++ b/app/scripts/controllers/transactions.js @@ -184,6 +184,13 @@ module.exports = class TransactionController extends EventEmitter { return await this.txGasUtil.analyzeGasUsage(txMeta) } + async retryTransaction (txId) { + this.txStateManager.setTxStatusUnapproved(txId) + const txMeta = this.txStateManager.getTx(txId) + txMeta.lastGasPrice = txMeta.txParams.gasPrice + this.txStateManager.updateTx(txMeta, 'retryTransaction: manual retry') + } + async updateAndApproveTransaction (txMeta) { this.txStateManager.updateTx(txMeta, 'confTx: user approved transaction') await this.approveTransaction(txMeta.id) |