envoylabs / whoami

An NFT-based user and smart contract nameservice
Apache License 2.0
16 stars 8 forks source link

Meta field validation #48

Open the-frey opened 2 years ago

the-frey commented 2 years ago

Some fields could end up comically long and break things. Probably worth introducing a sensible maximum for all the string fields.

the-frey commented 2 years ago

For now, resolving on the front-end but it's worth considering.

the-frey commented 2 years ago

Other validation for formatting etc is available on the front-end https://github.com/envoylabs/whoami-ui/blob/main/util/forms.ts

Some of this might be worth porting to the contract - e.g. the URLs stuff, for ex