mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 16:01:04 +00:00
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:
@@ -639,7 +639,12 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
|
||||
},
|
||||
}
|
||||
});
|
||||
T::Currency::extend_lock(CONVICTION_VOTING_ID, who, amount, WithdrawReasons::TRANSFER);
|
||||
T::Currency::extend_lock(
|
||||
CONVICTION_VOTING_ID,
|
||||
who,
|
||||
amount,
|
||||
WithdrawReasons::except(WithdrawReasons::RESERVE),
|
||||
);
|
||||
}
|
||||
|
||||
/// Rejig the lock on an account. It will never get more stringent (since that would indicate
|
||||
@@ -669,7 +674,7 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
|
||||
CONVICTION_VOTING_ID,
|
||||
who,
|
||||
lock_needed,
|
||||
WithdrawReasons::TRANSFER,
|
||||
WithdrawReasons::except(WithdrawReasons::RESERVE),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user