mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 03:27:58 +00:00
Reduce call size of Referenda pallet (#11578)
* Reduce call size of Referenda pallet * Fixes * Fixes * Fixes * Docs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user