Enhancement: Indicate when token id is already minted
rasmuscnielsen opened this issue · 1 comments
rasmuscnielsen commented
Ie by adding "Already minted - {TOKEN ID}" to the dropdown of personal tokens.
rasmuscnielsen commented
@briangershon As for this one my thoughts are
- Tweak the response of
useAvatarContract@getAvailableTokens
to somehow include mint status. Say an array of objects rather than current array of plain integers - As a result the
getAvailableTokens
would - after fetching the inventory from server - also need to fetch the claim status of the individual tokens before return the response. I imagine the code would be quite similar to what the web server does for the genesis tokens only it might be another method to call on the avatar contractpixel-avatars/web-server/src/repositories/GenesisRepository.js
Lines 13 to 18 in 29c44cb