Migrate pallet-lottery to pallet attribute macro (#8762)

* Migrate pallet-lottery to pallet attribute macro.

* Fix metadata inconsistency.

* fix

* Use DispatchResult in call returns.
This commit is contained in:
Shaun Wang authored and GitHub committed 2021-05-12 12:44:19 +00:00
1 parent ad584733e9
commit 6e11dd18fb
5 files changed
+241 -219

No files matched your search

+1 -1
View File
@@ -1019,7 +1019,7 @@ impl pallet_mmr::Config for Runtime {
parameter_types! {
pub const LotteryPalletId: PalletId = PalletId(*b"py/lotto");
pub const MaxCalls: usize = 10;
pub const MaxCalls: u32 = 10;
pub const MaxGenerateRandom: u32 = 10;
}