aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/helpers/transactions.util.js
diff options
context:
space:
mode:
authorDan Finlay <542863+danfinlay@users.noreply.github.com>2018-09-19 08:57:01 +0800
committerGitHub <noreply@github.com>2018-09-19 08:57:01 +0800
commit3c3fed46cb032f59cd30daae04c17475196cd5c9 (patch)
tree2e73e3f7c816b6793f5156704f5ba72ec2414186 /ui/app/helpers/transactions.util.js
parent0eca1fb9e0184f2bc1142327f0e4a7b30adf17bf (diff)
parent91ee373dbe9aafd5d3f198644b12a468b5c5e363 (diff)
downloadtangerine-wallet-browser-3c3fed46cb032f59cd30daae04c17475196cd5c9.tar.gz
tangerine-wallet-browser-3c3fed46cb032f59cd30daae04c17475196cd5c9.tar.zst
tangerine-wallet-browser-3c3fed46cb032f59cd30daae04c17475196cd5c9.zip
Merge pull request #5290 from MetaMask/i5289-gettokendata
Fix exception thrown on getTokenData
Diffstat (limited to 'ui/app/helpers/transactions.util.js')
-rw-r--r--ui/app/helpers/transactions.util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/helpers/transactions.util.js b/ui/app/helpers/transactions.util.js
index 0e1a6ca37..54bb3bcb9 100644
--- a/ui/app/helpers/transactions.util.js
+++ b/ui/app/helpers/transactions.util.js
@@ -20,13 +20,13 @@ import { addCurrencies } from '../conversion-util'
abiDecoder.addABI(abi)
-export function getTokenData (data = {}) {
+export function getTokenData (data = '') {
return abiDecoder.decodeMethod(data)
}
const registry = new MethodRegistry({ provider: global.ethereumProvider })
-export async function getMethodData (data = {}) {
+export async function getMethodData (data = '') {
const prefixedData = ethUtil.addHexPrefix(data)
const fourBytePrefix = prefixedData.slice(0, 10)
const sig = await registry.lookup(fourBytePrefix)