Insrt-Finance / insrt-v2-contracts

0 stars 3 forks source link

Add placeholder `enum` member to `AssetType` #89

Closed CruzMolina closed 1 year ago

CruzMolina commented 1 year ago

All default values in a mapping default to 0. To protect against this in the PerpetualMint storage Layout for the collectionType mapping, we should insert a NONE member at the top of the AssetType enum and update the code where applicable.

CruzMolina commented 1 year ago

After taking a second look at this, I don't think this is something we should be worried about.