--- a/pallets/common/src/lib.rs +++ b/pallets/common/src/lib.rs @@ -415,8 +415,15 @@ /// Not used by code, exists only to provide some types to metadata #[pallet::storage] - pub type DummyStorageValue = - StorageValue>), QueryKind = OptionQuery>; + pub type DummyStorageValue = StorageValue< + Value = ( + CollectionStats, + CollectionId, + TokenId, + PhantomType>, + ), + QueryKind = OptionQuery, + >; #[pallet::hooks] impl Hooks> for Pallet { --- a/primitives/data-structs/src/lib.rs +++ b/primitives/data-structs/src/lib.rs @@ -591,16 +591,17 @@ type Identity = PhantomType; fn type_info() -> scale_info::Type { - use scale_info::{Type, Path, build::{FieldsBuilder, UnnamedFields}}; + use scale_info::{ + Type, Path, + build::{FieldsBuilder, UnnamedFields}, + }; Type::builder() .path(Path::new("up_data_structs", "PhantomType")) - .composite(>::default().field(|b| - b.ty::<[T ;0]>() - )) + .composite(>::default().field(|b| b.ty::<[T; 0]>())) } } impl MaxEncodedLen for PhantomType { fn max_encoded_len() -> usize { 0 } -} \ No newline at end of file +}