aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorFrankie <frankie.pangilinan@consensys.net>2016-10-14 07:53:32 +0800
committerFrankie <frankie.pangilinan@consensys.net>2016-10-14 07:53:32 +0800
commitaace26c4bda151c71f9f8c73669e789ac258e9ee (patch)
treec6ec247a3fbaf89469c5eedb82add68e2a81bfdf /app
parent328f8b0cac1e19a2f27ca0272930e393b1e9dc8d (diff)
downloadtangerine-wallet-browser-aace26c4bda151c71f9f8c73669e789ac258e9ee.tar
tangerine-wallet-browser-aace26c4bda151c71f9f8c73669e789ac258e9ee.tar.gz
tangerine-wallet-browser-aace26c4bda151c71f9f8c73669e789ac258e9ee.tar.bz2
tangerine-wallet-browser-aace26c4bda151c71f9f8c73669e789ac258e9ee.tar.lz
tangerine-wallet-browser-aace26c4bda151c71f9f8c73669e789ac258e9ee.tar.xz
tangerine-wallet-browser-aace26c4bda151c71f9f8c73669e789ac258e9ee.tar.zst
tangerine-wallet-browser-aace26c4bda151c71f9f8c73669e789ac258e9ee.zip
Create callback and Clean-up details
Diffstat (limited to 'app')
-rw-r--r--app/scripts/metamask-controller.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index c48a4c569..38c8b21af 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -379,7 +379,12 @@ module.exports = class MetamaskController {
this.configManager.createShapeShiftTx(depositAddress, depositType)
}
- setGasMultiplier (gasMultiplier) {
- this.configManager.setGasMultiplier(gasMultiplier)
+ setGasMultiplier (gasMultiplier, cb) {
+ try{
+ this.configManager.setGasMultiplier(gasMultiplier)
+ cb()
+ } catch (e) {
+ cb(e)
+ }
}
}