WA-232 Using StandardToken smartcontract when validating token address

This commit is contained in:
apanizo 2018-07-25 11:13:41 +02:00
parent 3ea1446df5
commit 1749dc31b6
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import Heading from '~/components/layout/Heading'
import { promisify } from '~/utils/promisify' import { promisify } from '~/utils/promisify'
import { getWeb3 } from '~/wallets/getWeb3' import { getWeb3 } from '~/wallets/getWeb3'
import { EMPTY_DATA } from '~/wallets/ethTransactions' import { EMPTY_DATA } from '~/wallets/ethTransactions'
import { getHumanFriendlyToken } from '~/routes/tokens/store/actions/fetchTokens' import { getStandardTokenContract } from '~/routes/tokens/store/actions/fetchTokens'
type Props = { type Props = {
addresses: string[], addresses: string[],
@ -24,7 +24,7 @@ export const token = async (tokenAddress: string) => {
return 'Specified address is not deployed on the current network' 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 instance = await erc20Token.at(tokenAddress)
const supply = await instance.totalSupply() const supply = await instance.totalSupply()