Fix pallet's integration (#13056)

This commit is contained in:
Jegor Sidorenko
2023-01-04 10:30:12 +02:00
committed by GitHub
parent 83c1ffd7a5
commit ae72d1cdf9
3 changed files with 12 additions and 8 deletions
+2
View File
@@ -1767,3 +1767,5 @@ pub mod pallet {
}
}
}
sp_core::generate_feature_enabled_macro!(runtime_benchmarks_enabled, feature = "runtime-benchmarks", $);
+8 -8
View File
@@ -272,15 +272,15 @@ pub enum MintType<CollectionId> {
#[derive(Clone, Copy, Encode, Decode, Eq, PartialEq, RuntimeDebug, TypeInfo, MaxEncodedLen)]
pub struct MintSettings<Price, BlockNumber, CollectionId> {
/// Whether anyone can mint or if minters are restricted to some subset.
pub(super) mint_type: MintType<CollectionId>,
pub mint_type: MintType<CollectionId>,
/// An optional price per mint.
pub(super) price: Option<Price>,
pub price: Option<Price>,
/// When the mint starts.
pub(super) start_block: Option<BlockNumber>,
pub start_block: Option<BlockNumber>,
/// When the mint ends.
pub(super) end_block: Option<BlockNumber>,
pub end_block: Option<BlockNumber>,
/// Default settings each item will get during the mint.
pub(super) default_item_settings: ItemSettings,
pub default_item_settings: ItemSettings,
}
impl<Price, BlockNumber, CollectionId> Default for MintSettings<Price, BlockNumber, CollectionId> {
@@ -315,11 +315,11 @@ pub enum PalletAttributes<CollectionId> {
)]
pub struct CollectionConfig<Price, BlockNumber, CollectionId> {
/// Collection's settings.
pub(super) settings: CollectionSettings,
pub settings: CollectionSettings,
/// Collection's max supply.
pub(super) max_supply: Option<u32>,
pub max_supply: Option<u32>,
/// Default settings each item will get during the mint.
pub(super) mint_settings: MintSettings<Price, BlockNumber, CollectionId>,
pub mint_settings: MintSettings<Price, BlockNumber, CollectionId>,
}
impl<Price, BlockNumber, CollectionId> CollectionConfig<Price, BlockNumber, CollectionId> {