Underscore in TNS Registration makes an error
Opened this issue · 2 comments
WaDadidou commented
If you try to register a name including a -
, the amount of tokens available won't load. You will see an error generated from https://github.com/TERITORI/teritori-dapp/blob/ee896a98c1079a46107f00dbae2cf71608a437ec/packages/screens/TeritoriNameService/TNSMintNameScreen.tsx#L296C43-L296C43
===> We need to better control the entered name
, respecting the TNS formats accepted. maybe need a kind of regexp directly fetched from the backend ?
(In TNSNameFinderModal.tsx
, FindAName.tsx
, NameDataForm.tsx
, etc...)
n0izn0iz commented
You can get the list of available characters from the contract
n0izn0iz commented
As a temporary hack you can also query the booking price and I think it returns an error if there is a wrong character