diff options
author | Dan Miller <danjm.com@gmail.com> | 2018-10-26 12:42:59 +0800 |
---|---|---|
committer | Dan Miller <danjm.com@gmail.com> | 2018-12-04 11:36:05 +0800 |
commit | 9b9a2cc2e00618167d5fac8103e928fc16153b2d (patch) | |
tree | e17a0495531b3ea51167321809af877158a05ef7 /app/scripts/metamask-controller.js | |
parent | 3162a2747c0e54f729405caaef777519e4ded4dc (diff) | |
download | tangerine-wallet-browser-9b9a2cc2e00618167d5fac8103e928fc16153b2d.tar.gz tangerine-wallet-browser-9b9a2cc2e00618167d5fac8103e928fc16153b2d.tar.zst tangerine-wallet-browser-9b9a2cc2e00618167d5fac8103e928fc16153b2d.zip |
Adds createSpeedUpTransaction to txController
Diffstat (limited to 'app/scripts/metamask-controller.js')
-rw-r--r-- | app/scripts/metamask-controller.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index fe806e47e..d382b1ad0 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -445,6 +445,7 @@ module.exports = class MetamaskController extends EventEmitter { updateAndApproveTransaction: nodeify(txController.updateAndApproveTransaction, txController), retryTransaction: nodeify(this.retryTransaction, this), createCancelTransaction: nodeify(this.createCancelTransaction, this), + createSpeedUpTransaction: nodeify(this.createSpeedUpTransaction, this), getFilteredTxList: nodeify(txController.getFilteredTxList, txController), isNonceTaken: nodeify(txController.isNonceTaken, txController), estimateGas: nodeify(this.estimateGas, this), @@ -1162,6 +1163,12 @@ module.exports = class MetamaskController extends EventEmitter { return state } + async createSpeedUpTransaction (originalTxId, customGasPrice, cb) { + await this.txController.createSpeedUpTransaction(originalTxId, customGasPrice) + const state = await this.getState() + return state + } + estimateGas (estimateGasParams) { return new Promise((resolve, reject) => { return this.txController.txGasUtil.query.estimateGas(estimateGasParams, (err, res) => { |