Add missing #[pallet::constant] annotations to pallets (#9367)

fixing #9306
This commit is contained in:
Falco Hirschenberger
2021-07-18 20:27:39 +02:00
committed by GitHub
parent 2dcbad535b
commit 76a289ebd8
13 changed files with 31 additions and 0 deletions
+2
View File
@@ -301,6 +301,7 @@ pub mod pallet {
/// Indicator for whether an emergency origin is even allowed to happen. Some chains may want
/// to set this permanently to `false`, others may want to condition it on things such as
/// an upgrade having happened recently.
#[pallet::constant]
type InstantAllowed: Get<bool>;
/// Minimum voting period allowed for a fast-track referendum.
@@ -355,6 +356,7 @@ pub mod pallet {
type WeightInfo: WeightInfo;
/// The maximum number of public proposals that can exist at any time.
#[pallet::constant]
type MaxProposals: Get<u32>;
}