mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 15:27:57 +00:00
Reduce call size of Referenda pallet (#11578)
* Reduce call size of Referenda pallet * Fixes * Fixes * Fixes * Docs
This commit is contained in:
@@ -46,7 +46,7 @@ fn create_referendum<T: Config>() -> (T::AccountId, ReferendumIndex) {
|
||||
whitelist_account!(caller);
|
||||
assert_ok!(Referenda::<T>::submit(
|
||||
RawOrigin::Signed(caller.clone()).into(),
|
||||
RawOrigin::Root.into(),
|
||||
Box::new(RawOrigin::Root.into()),
|
||||
T::Hashing::hash_of(&0),
|
||||
DispatchTime::After(0u32.into())
|
||||
));
|
||||
@@ -177,7 +177,7 @@ benchmarks! {
|
||||
whitelist_account!(caller);
|
||||
}: _(
|
||||
RawOrigin::Signed(caller),
|
||||
RawOrigin::Root.into(),
|
||||
Box::new(RawOrigin::Root.into()),
|
||||
T::Hashing::hash_of(&0),
|
||||
DispatchTime::After(0u32.into())
|
||||
) verify {
|
||||
|
||||
Reference in New Issue
Block a user