aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/pages/confirm-transaction/confirm-transaction.container.js
diff options
context:
space:
mode:
authorDan Finlay <542863+danfinlay@users.noreply.github.com>2019-07-02 01:58:25 +0800
committerGitHub <noreply@github.com>2019-07-02 01:58:25 +0800
commit448720327b45470af4ee62ae0ad5649df5a6d8b4 (patch)
tree0a38c27b78eedb821a5ecaf6d79c57f953231d47 /ui/app/pages/confirm-transaction/confirm-transaction.container.js
parentd16d6f483c28c07aedcaa0bc69228109fa5fbade (diff)
parent743afd4e9d0c229001519e1370945d640946fd2c (diff)
downloadtangerine-wallet-browser-448720327b45470af4ee62ae0ad5649df5a6d8b4.tar
tangerine-wallet-browser-448720327b45470af4ee62ae0ad5649df5a6d8b4.tar.gz
tangerine-wallet-browser-448720327b45470af4ee62ae0ad5649df5a6d8b4.tar.bz2
tangerine-wallet-browser-448720327b45470af4ee62ae0ad5649df5a6d8b4.tar.lz
tangerine-wallet-browser-448720327b45470af4ee62ae0ad5649df5a6d8b4.tar.xz
tangerine-wallet-browser-448720327b45470af4ee62ae0ad5649df5a6d8b4.tar.zst
tangerine-wallet-browser-448720327b45470af4ee62ae0ad5649df5a6d8b4.zip
Merge pull request #6765 from MetaMask/master
Using admin privilege to bypass code owner review because it has already [been reviewed](https://github.com/MetaMask/metamask-extension/pull/6763) and those code owners are out today.
Diffstat (limited to 'ui/app/pages/confirm-transaction/confirm-transaction.container.js')
-rw-r--r--ui/app/pages/confirm-transaction/confirm-transaction.container.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/ui/app/pages/confirm-transaction/confirm-transaction.container.js b/ui/app/pages/confirm-transaction/confirm-transaction.container.js
index 993e880c2..6da855df2 100644
--- a/ui/app/pages/confirm-transaction/confirm-transaction.container.js
+++ b/ui/app/pages/confirm-transaction/confirm-transaction.container.js
@@ -6,11 +6,15 @@ import {
clearConfirmTransaction,
} from '../../ducks/confirm-transaction/confirm-transaction.duck'
import {
+ isTokenMethodAction,
+} from '../../helpers/utils/transactions.util'
+import {
fetchBasicGasAndTimeEstimates,
} from '../../ducks/gas/gas.duck'
import {
getContractMethodData,
+ getTokenParams,
} from '../../store/actions'
import ConfirmTransaction from './confirm-transaction.component'
import { unconfirmedTransactionsListSelector } from '../../selectors/confirm-transaction'
@@ -25,6 +29,7 @@ const mapStateToProps = (state, ownProps) => {
const transaction = totalUnconfirmed
? unapprovedTxs[id] || unconfirmedTransactions[totalUnconfirmed - 1]
: {}
+ const { id: transactionId, transactionCategory } = transaction
return {
totalUnapprovedCount: totalUnconfirmed,
@@ -33,9 +38,10 @@ const mapStateToProps = (state, ownProps) => {
unapprovedTxs,
id,
paramsTransactionId: id && String(id),
- transactionId: transaction.id && String(transaction.id),
+ transactionId: transactionId && String(transactionId),
unconfirmedTransactions,
transaction,
+ isTokenMethodAction: isTokenMethodAction(transactionCategory),
}
}
@@ -47,6 +53,7 @@ const mapDispatchToProps = dispatch => {
clearConfirmTransaction: () => dispatch(clearConfirmTransaction()),
fetchBasicGasAndTimeEstimates: () => dispatch(fetchBasicGasAndTimeEstimates()),
getContractMethodData: (data) => dispatch(getContractMethodData(data)),
+ getTokenParams: (tokenAddress) => dispatch(getTokenParams(tokenAddress)),
}
}