Remove Self vote from phragmen (#4081)

* first draft of everything that works

* Some test fixes
This commit is contained in:
Kian Paimani
2019-11-11 00:41:44 +01:00
committed by Bastian Köcher
parent b691cfe093
commit ed5d31a22b
6 changed files with 107 additions and 130 deletions
+1 -1
View File
@@ -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