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
The cw_storage_plus Map requires PrimaryKey implementation for its keys, which is implemented for Addr but not CanonicalAddr. However, CanonicalAddr are stable and unique and keys should be stored using that type instead of Addr.
The text was updated successfully, but these errors were encountered:
Workaround is using addr.as_bytes() for the key.
In fact, you should never use CannonicalAddr as a key, but rather &CanonicalAddr, it is more efficient and does the same work. The only reason we support Addr in addition to &Addr was for backwards compatibility to not randomly break some older contracts.
The cw_storage_plus Map requires PrimaryKey implementation for its keys, which is implemented for Addr but not CanonicalAddr. However, CanonicalAddr are stable and unique and keys should be stored using that type instead of Addr.
The text was updated successfully, but these errors were encountered: