hotfix/trust-icons-change (#501)
* Trust URI scheme, replaced by checksum address * Run prettier
This commit is contained in:
parent
bb4d035012
commit
2c1c076d59
@ -1,10 +1,13 @@
|
||||
import React, { useState } from 'react'
|
||||
import styled from 'styled-components'
|
||||
import { isAddress } from '../../utils'
|
||||
|
||||
import { ReactComponent as EthereumLogo } from '../../assets/images/ethereum-logo.svg'
|
||||
|
||||
const TOKEN_ICON_API = address =>
|
||||
`https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/${address}/logo.png`
|
||||
`https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/${isAddress(
|
||||
address
|
||||
)}/logo.png`
|
||||
const BAD_IMAGES = {}
|
||||
|
||||
const Image = styled.img`
|
||||
|
Loading…
Reference in New Issue
Block a user