-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
If the number of collections gets too high, it might become impossible to update the seller because of
boson-protocol-contracts/contracts/protocol/facets/SellerHandlerFacet.sol
Lines 274 to 281 in 2b9f60b
| uint256 collectionCount = sellersAdditionalCollections.length; | |
| for (uint256 j = 0; j < collectionCount; ) { | |
| // Additional collections (if they exist) | |
| IBosonVoucher(sellersAdditionalCollections[j].collectionAddress).transferOwnership(sender); | |
| unchecked { | |
| j++; | |
| } |
Options
- Create a new protocol limit
maxCollectionsPerSeller. After the seller reaches it,createNewCollectionreverts - Enable removing existing collections
- Change the voucher implementation to not store the owner in its storage, but retrieves it from the protocol when needed.
Note
It's not critical now, since the maximum number of collections before running into the problem should be relatively high.
Tracking issue for:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels