pass token address as a param in fetch token function
This commit is contained in:
parent
39ccb7b288
commit
4b1a0f785d
|
@ -4,9 +4,13 @@ import { getRelayUrl } from '~/config/index'
|
|||
|
||||
const fetchToken = (tokenAddress: string) => {
|
||||
const apiUrl = getRelayUrl()
|
||||
const url = `${apiUrl}/tokens/${tokenAddress}`
|
||||
const url = `${apiUrl}/tokens/`
|
||||
|
||||
return axios.get(url)
|
||||
return axios.get(url, {
|
||||
params: {
|
||||
address: tokenAddress,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
export default fetchToken
|
||||
export default fetchToken
|
||||
|
|
Loading…
Reference in New Issue