Vote locks for all reasons except RESERVE (#13914)

* Vote locks tip

* except reserve

* reason for delegate

* fix tests

---------

Co-authored-by: parity-processbot <>
This commit is contained in:
Muharem Ismailov
2023-04-24 16:57:45 +02:00
committed by GitHub
parent 3688575fd0
commit 97f4a09591
3 changed files with 26 additions and 6 deletions
@@ -34,7 +34,7 @@ fn nay(x: u8, balance: u64) -> AccountVote<u64> {
}
fn the_lock(amount: u64) -> BalanceLock<u64> {
BalanceLock { id: DEMOCRACY_ID, amount, reasons: pallet_balances::Reasons::Misc }
BalanceLock { id: DEMOCRACY_ID, amount, reasons: pallet_balances::Reasons::All }
}
#[test]