This guide lists API changes between cw-storage-plus major releases.
-
The
UniqueIndex
PK
trait parameter is now mandatory #37.The migration is straightforward: just add the
PK
type parameter to yourUniqueIndex
implementation. If you don't plan to deserialize it, you can use()
as yourUniqueIndex
PK
type, which was the default before. -
The
KeyDeserialize
trait now includes aKEY_ELEMS
const #34, that needs to be defined when implementing this trait. This const defines the number of elements in the key, and its value would typically be1
.This only affect users that implement
KeyDeserialize
for their own types. If you only use the provided types, you don't need to worry about this.