diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-07-17 06:50:26 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-07-18 20:28:12 +0800 |
commit | fb672e00df949da67266946d433c40cbbaf7d145 (patch) | |
tree | 9c050478dff5c87275ff311dc514e672d7502ee9 /ui/app/components/send/send-footer/send-footer.component.js | |
parent | 9ea7411c063712825780110c10252155ccb61e44 (diff) | |
download | tangerine-wallet-browser-fb672e00df949da67266946d433c40cbbaf7d145.tar.gz tangerine-wallet-browser-fb672e00df949da67266946d433c40cbbaf7d145.tar.zst tangerine-wallet-browser-fb672e00df949da67266946d433c40cbbaf7d145.zip |
Send data along with other tx params
Diffstat (limited to 'ui/app/components/send/send-footer/send-footer.component.js')
-rw-r--r-- | ui/app/components/send/send-footer/send-footer.component.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/app/components/send/send-footer/send-footer.component.js b/ui/app/components/send/send-footer/send-footer.component.js index 2085f1dce..518cff06e 100644 --- a/ui/app/components/send/send-footer/send-footer.component.js +++ b/ui/app/components/send/send-footer/send-footer.component.js @@ -8,6 +8,7 @@ export default class SendFooter extends Component { static propTypes = { addToAddressBookIfNew: PropTypes.func, amount: PropTypes.string, + data: PropTypes.string, clearSend: PropTypes.func, disabled: PropTypes.bool, editingTransactionId: PropTypes.string, @@ -41,6 +42,7 @@ export default class SendFooter extends Component { const { addToAddressBookIfNew, amount, + data, editingTransactionId, from: {address: from}, gasLimit: gas, @@ -68,6 +70,7 @@ export default class SendFooter extends Component { const promise = editingTransactionId ? update({ amount, + data, editingTransactionId, from, gas, @@ -76,7 +79,7 @@ export default class SendFooter extends Component { to, unapprovedTxs, }) - : sign({ selectedToken, to, amount, from, gas, gasPrice }) + : sign({ data, selectedToken, to, amount, from, gas, gasPrice }) Promise.resolve(promise) .then(() => history.push(CONFIRM_TRANSACTION_ROUTE)) |