diff options
author | Dan <danjm.com@gmail.com> | 2018-05-24 00:43:25 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-05-31 07:24:31 +0800 |
commit | 0f20fce9b761fc0aa16d61b2b739fa7f9b9f6a7d (patch) | |
tree | d3c566fdb0485a690da5048264372514661e3830 /ui/app/components/send_/send.component.js | |
parent | 3d597cd1d2bfe74abdb945f8ec3ffe96853ed90a (diff) | |
download | tangerine-wallet-browser-0f20fce9b761fc0aa16d61b2b739fa7f9b9f6a7d.tar.gz tangerine-wallet-browser-0f20fce9b761fc0aa16d61b2b739fa7f9b9f6a7d.tar.zst tangerine-wallet-browser-0f20fce9b761fc0aa16d61b2b739fa7f9b9f6a7d.zip |
Auto update gas estimate when to changes.
Diffstat (limited to 'ui/app/components/send_/send.component.js')
-rw-r--r-- | ui/app/components/send_/send.component.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/app/components/send_/send.component.js b/ui/app/components/send_/send.component.js index 0f82d3f19..97c6d1294 100644 --- a/ui/app/components/send_/send.component.js +++ b/ui/app/components/send_/send.component.js @@ -39,8 +39,9 @@ export default class SendTransactionScreen extends PersistentForm { updateSendTokenBalance: PropTypes.func, }; - updateGas () { + updateGas ({ to } = {}) { const { + amount, blockGasLimit, data, editingTransactionId, @@ -61,6 +62,8 @@ export default class SendTransactionScreen extends PersistentForm { recentBlocks, selectedAddress, selectedToken, + to: to && to.toLowerCase(), + value: amount, }) } @@ -147,7 +150,7 @@ export default class SendTransactionScreen extends PersistentForm { return ( <div className="page-container"> <SendHeader history={history}/> - <SendContent/> + <SendContent updateGas={(updateData) => this.updateGas(updateData)}/> <SendFooter history={history}/> </div> ) |