dapperlabs / nba-smart-contracts

Smart contracts and transactions for Topshot, the official NBA digital collectibles game on the Flow Blockchain
https://www.nbatopshot.com
The Unlicense
333 stars 105 forks source link

Provide a transaction to relink a topshot collection #204

Open bjartek opened 1 year ago

bjartek commented 1 year ago

Some users have topshot collections that are only linked with the TopShotCollectionPublic restrictions. Like this user 0x98daa38ecdf9972e

The current setup transaction https://github.com/dapperlabs/nba-smart-contracts/blob/master/transactions/user/setup_account.cdc sets up an account according to the NFT Metadata standard, but there is no transaction that I can see that provide a way for old users to relink their collection.

Backstory

A user in .find contacted us after somebody tried to send his dapper account a topshot moment. It failed to send so it was put into flowty lost and found.

I have then try to remeed it from there for him, but that does not work since his collection is not linked according to the NFT standard. It only uses the TopshotCollectionPublic restriction and 3rd party tools have no way of knowing all of the different premutations.

How to fix

provide a relink transaction and surface that in the dapper wallet if a user has a collection that is linked wrong.

joshuahannan commented 1 year ago

@jrkhan Is this something y'all can prioritize?

jrkhan commented 1 year ago

Sure thing - will bring this up during backlog grooming today.

bjartek commented 1 year ago

Gaia has this I belive. Talk to them.