From 1749dc31b6bf13eb2716632aa829828829340197 Mon Sep 17 00:00:00 2001 From: apanizo Date: Wed, 25 Jul 2018 11:13:41 +0200 Subject: [PATCH] WA-232 Using StandardToken smartcontract when validating token address --- src/routes/tokens/component/AddToken/FirstPage.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/tokens/component/AddToken/FirstPage.jsx b/src/routes/tokens/component/AddToken/FirstPage.jsx index dc5d3901..05535ff1 100644 --- a/src/routes/tokens/component/AddToken/FirstPage.jsx +++ b/src/routes/tokens/component/AddToken/FirstPage.jsx @@ -8,7 +8,7 @@ import Heading from '~/components/layout/Heading' import { promisify } from '~/utils/promisify' import { getWeb3 } from '~/wallets/getWeb3' import { EMPTY_DATA } from '~/wallets/ethTransactions' -import { getHumanFriendlyToken } from '~/routes/tokens/store/actions/fetchTokens' +import { getStandardTokenContract } from '~/routes/tokens/store/actions/fetchTokens' type Props = { addresses: string[], @@ -24,7 +24,7 @@ export const token = async (tokenAddress: string) => { return 'Specified address is not deployed on the current network' } - const erc20Token = await getHumanFriendlyToken() + const erc20Token = await getStandardTokenContract() const instance = await erc20Token.at(tokenAddress) const supply = await instance.totalSupply()