mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-16 00:21:05 +00:00
Remove Self vote from phragmen (#4081)
* first draft of everything that works * Some test fixes
This commit is contained in:
committed by
Bastian Köcher
parent
b691cfe093
commit
ed5d31a22b
@@ -579,7 +579,7 @@ mod tests {
|
||||
<Treasury as OnFinalize<u64>>::on_finalize(2);
|
||||
assert_eq!(Treasury::pot(), 100); // Pot hasn't changed
|
||||
|
||||
Balances::deposit_into_existing(&Treasury::account_id(), 100);
|
||||
let _ = Balances::deposit_into_existing(&Treasury::account_id(), 100).unwrap();
|
||||
<Treasury as OnFinalize<u64>>::on_finalize(4);
|
||||
assert_eq!(Balances::free_balance(&3), 150); // Fund has been spent
|
||||
assert_eq!(Treasury::pot(), 25); // Pot has finally changed
|
||||
|
||||
Reference in New Issue
Block a user