(Feature) [xDai] - Use tx service for loading token info#1435
Conversation
|
CLA Assistant Lite All Contributors have signed the CLA. |
ESLint Summary View Full Report
[warning] @typescript-eslint/explicit-module-boundary-types
Report generated by eslint-plus-action |
|
Travis automatic deployment: |
fernandomg
left a comment
There was a problem hiding this comment.
We'll need to filter what's returned, as this service exposes both ERC20 and ERC721 tokens.
Bear in mind that #1408 will serve from this same endpoint, so you can do something reusable for that PR.
|
It's fixed now, I just filtered the ERC721, on the PR for #1408 we should aim to use the same function to fetch both of them and save it together into redux and removing the old functions. Didn't want to do it here to make things simpler, let's work on that on the next pr |
|
Travis automatic deployment: |
1 similar comment
|
Travis automatic deployment: |
| } = await fetchTokenList() | ||
|
|
||
| if (currentSavedTokens && currentSavedTokens.size === tokenList.length) { | ||
| const erc20Tokens = tokenList.filter((token) => token.type.toLowerCase() === 'erc20') |
There was a problem hiding this comment.
Should we move erc20 string to a constant variable?
There was a problem hiding this comment.
I don't think it's mandatory now. Probably when we work on #1408 we'll address this in a most consistent way.
|
Didn't notice this before, but I see we are not having a convention in API URL parameters. We are adding final slash in some of them but we aren't on the others. We should stick to not add slash on the end of the API URL parameters so we start the routes with slash. |
Ok, good call. Actually, we may have missed some, but we intentionally wanted to add a slash to the end of all the URLs in the config files 😁 |
|
Travis automatic deployment: |
|
Travis automatic deployment: |

Closes #1407
Description
getRelayUrlwithgetTxServiceUrlfetchToken