diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-10-17 03:54:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-17 03:54:23 +0800 |
commit | 11c114599c75c6188703c619135ce41877f83b66 (patch) | |
tree | 115ed3828722fc0a60b83d19bb34b0a198e153b6 /app/scripts/lib/config-manager.js | |
parent | 8d5b2478e3aa939cb4b0a58b20b199cded62769e (diff) | |
parent | 35232c5e293b30da90049b094d87336bb22dc59e (diff) | |
download | tangerine-wallet-browser-11c114599c75c6188703c619135ce41877f83b66.tar tangerine-wallet-browser-11c114599c75c6188703c619135ce41877f83b66.tar.gz tangerine-wallet-browser-11c114599c75c6188703c619135ce41877f83b66.tar.bz2 tangerine-wallet-browser-11c114599c75c6188703c619135ce41877f83b66.tar.lz tangerine-wallet-browser-11c114599c75c6188703c619135ce41877f83b66.tar.xz tangerine-wallet-browser-11c114599c75c6188703c619135ce41877f83b66.tar.zst tangerine-wallet-browser-11c114599c75c6188703c619135ce41877f83b66.zip |
Merge pull request #720 from MetaMask/i#495CustomGasField
add a gasPrice field
Diffstat (limited to 'app/scripts/lib/config-manager.js')
-rw-r--r-- | app/scripts/lib/config-manager.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js index ecc9bc5f7..cced32670 100644 --- a/app/scripts/lib/config-manager.js +++ b/app/scripts/lib/config-manager.js @@ -384,3 +384,15 @@ ConfigManager.prototype.createShapeShiftTx = function (depositAddress, depositTy } this.setData(data) } + +ConfigManager.prototype.getGasMultiplier = function () { + var data = this.getData() + return ('gasMultiplier' in data) && data.gasMultiplier +} + +ConfigManager.prototype.setGasMultiplier = function (gasMultiplier) { + var data = this.getData() + + data.gasMultiplier = gasMultiplier + this.setData(data) +} |