mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-23 15:31:08 +00:00
Reduce call size of Referenda pallet (#11578)
* Reduce call size of Referenda pallet * Fixes * Fixes * Fixes * Docs
This commit is contained in:
@@ -310,7 +310,7 @@ pub fn set_balance_proposal_hash(value: u64) -> H256 {
|
||||
pub fn propose_set_balance(who: u64, value: u64, delay: u64) -> DispatchResult {
|
||||
Referenda::submit(
|
||||
Origin::signed(who),
|
||||
frame_system::RawOrigin::Root.into(),
|
||||
Box::new(frame_system::RawOrigin::Root.into()),
|
||||
set_balance_proposal_hash(value),
|
||||
DispatchTime::After(delay),
|
||||
)
|
||||
@@ -438,7 +438,7 @@ impl RefState {
|
||||
pub fn create(self) -> ReferendumIndex {
|
||||
assert_ok!(Referenda::submit(
|
||||
Origin::signed(1),
|
||||
frame_support::dispatch::RawOrigin::Root.into(),
|
||||
Box::new(frame_support::dispatch::RawOrigin::Root.into()),
|
||||
set_balance_proposal_hash(1),
|
||||
DispatchTime::At(10),
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user