Open mastbmawstaken opened 1 year ago
Bug Description When you try to search for non-latin tokens the response we get is the following error
Error: Tokens failed validation: /tokens/0/name must match pattern "^[ \w.'+-%/À-ÖØ-öø-ÿ:&[]()]+$"
Steps to Reproduce
const MY_TOKEN_LIST = [ { "name": "Dumplings", "address": "0x1da74e8beceaa94d4dc6020e4f2ffe3c6ea7176d", "symbol": "饺子", "decimals": 18, "chainId": 1, "logoURI": "/logo.png" }]
Expected Behavior I expected to be able to swap for these tokens but I'm prompted with the error above.
Additional Context Same token, different response:
Widget
Official App
Bug Description When you try to search for non-latin tokens the response we get is the following error
Error: Tokens failed validation: /tokens/0/name must match pattern "^[ \w.'+-%/À-ÖØ-öø-ÿ:&[]()]+$"
Steps to Reproduce
const MY_TOKEN_LIST = [ { "name": "Dumplings", "address": "0x1da74e8beceaa94d4dc6020e4f2ffe3c6ea7176d", "symbol": "饺子", "decimals": 18, "chainId": 1, "logoURI": "/logo.png" }]
Expected Behavior I expected to be able to swap for these tokens but I'm prompted with the error above.
Additional Context Same token, different response:
Widget
Official App