mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-12 19:14:08 +00:00
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…
x
Reference in New Issue
Block a user