Remove Self vote from phragmen (#4081)

* first draft of everything that works

* Some test fixes
This commit is contained in:
Kian Paimani authored and Bastian Köcher committed 2019-11-11 00:41:44 +01:00
1 parent b691cfe093
commit ed5d31a22b
6 files changed
+107 -130

No files matched your search

+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