error[E0277]: the trait bound `&[u8; 16]: EncodeLike<<T as frame_system::Config>::AccountId>` is not satisfied
--> pallets/bitz/src/lib.rs:138:40
|
138 | !CollectibleMap::<T>::contains_key(&collectible.unique_id),
| --------------------------------- ^^^^^^^^^^^^^^^^^^^^^^ the trait `EncodeLike<<T as frame_system::Config>::AccountId>` is not implemented for `&[u8; 16]`
| |
| required by a bound introduced by this call
|
note: required by a bound in `frame_support::pallet_prelude::StorageMap::<Prefix, Hasher, Key, Value, QueryKind, OnEmpty, MaxValues>::contains_key`
--> /Users/guna/.cargo/git/checkouts/substrate-7e08433d4c370a21/f38bd66/frame/support/src/storage/types/map.rs:136:30
|
136 | pub fn contains_key<KeyArg: EncodeLike<Key>>(key: KeyArg) -> bool {
| ^^^^^^^^^^^^^^^ required by this bound in `frame_support::pallet_prelude::StorageMap::<Prefix, Hasher, Key, Value, QueryKind, OnEmpty, MaxValues>::contains_key`
help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
|
101 | impl<T: Config> Pallet<T> where &[u8; 16]: EncodeLike<<T as frame_system::Config>::AccountId> {
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++