Reduce call size of Referenda pallet (#11578)

* Reduce call size of Referenda pallet

* Fixes

* Fixes

* Fixes

* Docs
This commit is contained in:
Gavin Wood
2022-06-02 12:41:05 +01:00
committed by GitHub
parent ba96e8a8f4
commit 58d23ef97b
5 changed files with 61 additions and 20 deletions
+2 -2
View File
@@ -355,7 +355,7 @@ pub mod pallet {
#[pallet::weight(T::WeightInfo::submit())]
pub fn submit(
origin: OriginFor<T>,
proposal_origin: PalletsOriginOf<T>,
proposal_origin: Box<PalletsOriginOf<T>>,
proposal_hash: T::Hash,
enactment_moment: DispatchTime<T::BlockNumber>,
) -> DispatchResult {
@@ -373,7 +373,7 @@ pub mod pallet {
let nudge_call = Call::nudge_referendum { index };
let status = ReferendumStatus {
track,
origin: proposal_origin,
origin: *proposal_origin,
proposal_hash,
enactment: enactment_moment,
submitted: now,