diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-08-07 13:39:54 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-08-24 07:45:27 +0800 |
commit | 9adf0c4b60c863a820af7b20ff66a8b29f7bdbe7 (patch) | |
tree | 37166e258a95f82f8ff592c30cd9cc07ca5b44a7 /ui/app/helpers | |
parent | c9ec5ed38d0e2475778ca6eb18d29b3389f67190 (diff) | |
download | tangerine-wallet-browser-9adf0c4b60c863a820af7b20ff66a8b29f7bdbe7.tar tangerine-wallet-browser-9adf0c4b60c863a820af7b20ff66a8b29f7bdbe7.tar.gz tangerine-wallet-browser-9adf0c4b60c863a820af7b20ff66a8b29f7bdbe7.tar.bz2 tangerine-wallet-browser-9adf0c4b60c863a820af7b20ff66a8b29f7bdbe7.tar.lz tangerine-wallet-browser-9adf0c4b60c863a820af7b20ff66a8b29f7bdbe7.tar.xz tangerine-wallet-browser-9adf0c4b60c863a820af7b20ff66a8b29f7bdbe7.tar.zst tangerine-wallet-browser-9adf0c4b60c863a820af7b20ff66a8b29f7bdbe7.zip |
Fix integration tests
Diffstat (limited to 'ui/app/helpers')
-rw-r--r-- | ui/app/helpers/transactions.util.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/app/helpers/transactions.util.js b/ui/app/helpers/transactions.util.js index 89d2649c9..8ded31bca 100644 --- a/ui/app/helpers/transactions.util.js +++ b/ui/app/helpers/transactions.util.js @@ -13,6 +13,7 @@ import { APPROVE_ACTION_KEY, SEND_TOKEN_ACTION_KEY, TRANSFER_FROM_ACTION_KEY, + SIGNATURE_REQUEST_KEY, } from '../constants/transactions' abiDecoder.addABI(abi) @@ -41,7 +42,11 @@ export function isConfirmDeployContract (txData = {}) { } export function getTransactionActionKey (transaction, methodData) { - const { txParams: { data } = {} } = transaction + const { txParams: { data } = {}, msgParams } = transaction + + if (msgParams) { + return SIGNATURE_REQUEST_KEY + } if (isConfirmDeployContract(transaction)) { return DEPLOY_CONTRACT_ACTION_KEY |