diff options
author | Dan <danjm.com@gmail.com> | 2017-10-27 00:43:12 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2017-11-07 03:33:04 +0800 |
commit | 319779ab081f70343b5ef77531450878292a90d6 (patch) | |
tree | 807755a45b82e03d99cec6103cab50f1f57be7d3 /ui/app/components/send | |
parent | 67bdfe87e31e695f8c4beab1659a3a4b764ccf24 (diff) | |
download | tangerine-wallet-browser-319779ab081f70343b5ef77531450878292a90d6.tar.gz tangerine-wallet-browser-319779ab081f70343b5ef77531450878292a90d6.tar.zst tangerine-wallet-browser-319779ab081f70343b5ef77531450878292a90d6.zip |
Adds max amount feature for send-ether
Diffstat (limited to 'ui/app/components/send')
-rw-r--r-- | ui/app/components/send/send-utils.js | 2 | ||||
-rw-r--r-- | ui/app/components/send/send-v2-container.js | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ui/app/components/send/send-utils.js b/ui/app/components/send/send-utils.js index 4eb010173..0260c38a6 100644 --- a/ui/app/components/send/send-utils.js +++ b/ui/app/components/send/send-utils.js @@ -22,7 +22,7 @@ function isBalanceSufficient({ toNumericBase: 'hex', }) - const balanceIsSufficient = conversionGreaterThan( + const balanceIsSufficient = conversionGTE( { value: balance, fromNumericBase: 'hex', diff --git a/ui/app/components/send/send-v2-container.js b/ui/app/components/send/send-v2-container.js index ee18d0b4b..51d5c4f89 100644 --- a/ui/app/components/send/send-v2-container.js +++ b/ui/app/components/send/send-v2-container.js @@ -66,6 +66,8 @@ function mapDispatchToProps (dispatch) { setSelectedAddress: address => dispatch(actions.setSelectedAddress(address)), addToAddressBook: address => dispatch(actions.addToAddressBook(address)), updateGasTotal: newTotal => dispatch(actions.updateGasTotal(newTotal)), + updateGasPrice: newGasPrice => dispatch(actions.updateGasPrice(newGasPrice)), + updateGasLimit: newGasLimit => dispatch(actions.updateGasLimit(newGasLimit)), updateSendTokenBalance: tokenBalance => dispatch(actions.updateSendTokenBalance(tokenBalance)), updateSendFrom: newFrom => dispatch(actions.updateSendFrom(newFrom)), updateSendTo: newTo => dispatch(actions.updateSendTo(newTo)), |