Feedback from @XLC for Referenda Pallet (#10991)

* feedback from @xlc

* english

* fmt

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
Shawn Tabrizi
2022-03-08 08:48:30 -04:00
committed by GitHub
parent c6d653ffc8
commit 64f6664691
6 changed files with 47 additions and 57 deletions
+2 -2
View File
@@ -306,7 +306,7 @@ pub fn propose_set_balance(who: u64, value: u64, delay: u64) -> DispatchResult {
Origin::signed(who),
frame_system::RawOrigin::Root.into(),
set_balance_proposal_hash(value),
AtOrAfter::After(delay),
DispatchTime::After(delay),
)
}
@@ -434,7 +434,7 @@ impl RefState {
Origin::signed(1),
frame_support::dispatch::RawOrigin::Root.into(),
set_balance_proposal_hash(1),
AtOrAfter::At(10),
DispatchTime::At(10),
));
assert_ok!(Referenda::place_decision_deposit(Origin::signed(2), 0));
if matches!(self, RefState::Confirming { immediate: true }) {