mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 00:01:03 +00:00
Add more asserts and debug_asserts (#8541)
* Add more asserts and debug_asserts fixing #8106 * Remove assignments * convert debug_assert to runtime assert
This commit is contained in:
committed by
GitHub
parent
a600e278ed
commit
e932c3ecd2
@@ -997,7 +997,8 @@ decl_module! {
|
||||
match kind {
|
||||
BidKind::Deposit(deposit) => {
|
||||
// Slash deposit and move it to the society account
|
||||
let _ = T::Currency::repatriate_reserved(&who, &Self::account_id(), deposit, BalanceStatus::Free);
|
||||
let res = T::Currency::repatriate_reserved(&who, &Self::account_id(), deposit, BalanceStatus::Free);
|
||||
debug_assert!(res.is_ok());
|
||||
}
|
||||
BidKind::Vouch(voucher, _) => {
|
||||
// Ban the voucher from vouching again
|
||||
|
||||
Reference in New Issue
Block a user