diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-08-07 16:57:46 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-08-24 07:45:27 +0800 |
commit | 5dcd8ceb7bbaef33fef5588feceac17577679e74 (patch) | |
tree | a50c48dbdf3cc376bcdd03de64845aa5bed97b51 /ui/app/helpers/transactions.util.js | |
parent | 9adf0c4b60c863a820af7b20ff66a8b29f7bdbe7 (diff) | |
download | tangerine-wallet-browser-5dcd8ceb7bbaef33fef5588feceac17577679e74.tar tangerine-wallet-browser-5dcd8ceb7bbaef33fef5588feceac17577679e74.tar.gz tangerine-wallet-browser-5dcd8ceb7bbaef33fef5588feceac17577679e74.tar.bz2 tangerine-wallet-browser-5dcd8ceb7bbaef33fef5588feceac17577679e74.tar.lz tangerine-wallet-browser-5dcd8ceb7bbaef33fef5588feceac17577679e74.tar.xz tangerine-wallet-browser-5dcd8ceb7bbaef33fef5588feceac17577679e74.tar.zst tangerine-wallet-browser-5dcd8ceb7bbaef33fef5588feceac17577679e74.zip |
Fix e2e tests
Diffstat (limited to 'ui/app/helpers/transactions.util.js')
-rw-r--r-- | ui/app/helpers/transactions.util.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/app/helpers/transactions.util.js b/ui/app/helpers/transactions.util.js index 8ded31bca..e890a0852 100644 --- a/ui/app/helpers/transactions.util.js +++ b/ui/app/helpers/transactions.util.js @@ -14,6 +14,7 @@ import { SEND_TOKEN_ACTION_KEY, TRANSFER_FROM_ACTION_KEY, SIGNATURE_REQUEST_KEY, + UNKNOWN_FUNCTION_KEY, } from '../constants/transactions' abiDecoder.addABI(abi) @@ -56,6 +57,10 @@ export function getTransactionActionKey (transaction, methodData) { const { name } = methodData const methodName = name && name.toLowerCase() + if (!methodName) { + return UNKNOWN_FUNCTION_KEY + } + switch (methodName) { case TOKEN_METHOD_TRANSFER: return SEND_TOKEN_ACTION_KEY |