In my pallet have created a custom new-type, in the same fashion as AccountId32
:
#[derive(Encode, Decode, Clone, PartialEq, Eq, Ord, PartialOrd, Debug, MaxEncodedLen, TypeInfo)]
pub struct GenericId(BoundedVec<u8, MaxGenericIdLenGet>);
The type can be converted From<GenericId> for BoundedVec<u8, MaxGenericIdLenGet>
and From<BoundedVec<u8, MaxGenericIdLenGet>> for GenericId
.
I would expect it to show up in the polkadot-js explorer as GenericId
(AccountId32
indeed shows up), but it shows as Bytes
instead.
How do I make GenericId
show up not as Bytes
?