You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should be checked as part of checkDeck in Inventory.sol.
We could modify the sorting doing there to preserve the unique NFT ID, then we only have to check all the instances of a similar card for similarity.
Once we have a frontend deck builder, we should also check this constraints (and others) there at add-time — although they won't be enforced contract-side when adding.
Alternatively, we could get rid of the notion of adding and removing cards from a deck and only mandate that decks are updated wholesale. This is potentially costly in terms of calldata, which is the main cost for rollups, so I do not think it's the way to go.
The text was updated successfully, but these errors were encountered:
This should be checked as part of
checkDeck
inInventory.sol
.We could modify the sorting doing there to preserve the unique NFT ID, then we only have to check all the instances of a similar card for similarity.
Once we have a frontend deck builder, we should also check this constraints (and others) there at add-time — although they won't be enforced contract-side when adding.
Alternatively, we could get rid of the notion of adding and removing cards from a deck and only mandate that decks are updated wholesale. This is potentially costly in terms of calldata, which is the main cost for rollups, so I do not think it's the way to go.
The text was updated successfully, but these errors were encountered: