manifoldxyz / royalty-registry-client

39 stars 24 forks source link

Bug Fix: Allow For Token ID to be 0 #3

Closed johnnyshankman closed 3 years ago

johnnyshankman commented 3 years ago

This PR

Changes the .match call we use within SelectableNumberField.vue to allow for Token IDs of 0 to pass. Previously, the field would simply not let your write 0 and overwrite it to 1 over and over again.

Details

This change must be made as tokens can have an ID of 0. Example: https://etherscan.io/address/0xc51a5c5c91b22c86c3493891883d8402f437e411#readContract

QA