aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send/send-footer/send-footer.container.js
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-07-17 06:50:26 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-07-18 20:28:12 +0800
commitfb672e00df949da67266946d433c40cbbaf7d145 (patch)
tree9c050478dff5c87275ff311dc514e672d7502ee9 /ui/app/components/send/send-footer/send-footer.container.js
parent9ea7411c063712825780110c10252155ccb61e44 (diff)
downloadtangerine-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.container.js')
-rw-r--r--ui/app/components/send/send-footer/send-footer.container.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/app/components/send/send-footer/send-footer.container.js b/ui/app/components/send/send-footer/send-footer.container.js
index 0af6fcfa1..60de4d030 100644
--- a/ui/app/components/send/send-footer/send-footer.container.js
+++ b/ui/app/components/send/send-footer/send-footer.container.js
@@ -18,6 +18,7 @@ import {
getSendFromObject,
getSendTo,
getSendToAccounts,
+ getSendHexData,
getTokenBalance,
getUnapprovedTxs,
} from '../send.selectors'
@@ -35,6 +36,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(SendFooter)
function mapStateToProps (state) {
return {
amount: getSendAmount(state),
+ data: getSendHexData(state),
editingTransactionId: getSendEditingTransactionId(state),
from: getSendFromObject(state),
gasLimit: getGasLimit(state),
@@ -52,9 +54,10 @@ function mapStateToProps (state) {
function mapDispatchToProps (dispatch) {
return {
clearSend: () => dispatch(clearSend()),
- sign: ({ selectedToken, to, amount, from, gas, gasPrice }) => {
+ sign: ({ selectedToken, to, amount, from, gas, gasPrice, data }) => {
const txParams = constructTxParams({
amount,
+ data,
from,
gas,
gasPrice,
@@ -68,6 +71,7 @@ function mapDispatchToProps (dispatch) {
},
update: ({
amount,
+ data,
editingTransactionId,
from,
gas,
@@ -78,6 +82,7 @@ function mapDispatchToProps (dispatch) {
}) => {
const editingTx = constructUpdatedTx({
amount,
+ data,
editingTransactionId,
from,
gas,