Use correct method name for createTokenTrackerLink in token-asset (#9917)

feature/default_network_editable
Dan J Miller 4 years ago committed by GitHub
parent 44448465ed
commit 2325514a67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui/app/pages/asset/components/token-asset.js

@ -2,7 +2,7 @@ import React from 'react'
import PropTypes from 'prop-types'
import { useDispatch, useSelector } from 'react-redux'
import { useHistory } from 'react-router-dom'
import { getTokenTrackerLink } from '@metamask/etherscan-link'
import { createTokenTrackerLink } from '@metamask/etherscan-link'
import TransactionList from '../../../components/app/transaction-list'
import { TokenOverview } from '../../../components/app/wallet-overview'
@ -36,7 +36,7 @@ export default function TokenAsset({ token }) {
dispatch(showModal({ name: 'HIDE_TOKEN_CONFIRMATION', token }))
}
onViewEtherscan={() => {
const url = getTokenTrackerLink(
const url = createTokenTrackerLink(
token.address,
network,
selectedAddress,

Loading…
Cancel
Save