mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-19 00:56:08 +00:00
Various minor fixes (#13945)
* Fix: Incorrect implementation of can_reserve check * Fix: Incorrect migration of consumer counting for existing accounts with frozen amounts * Fix: Inconsistent implementation between assets can_deposit and new_account * Fixes * Fixes * Another fix * Update tests.rs * Update fungible_tests.rs * Use `can_accrue_consumers` in the body of `can_inc_consumer` --------- Co-authored-by: Keith Yeung <kungfukeith11@gmail.com> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: parity-processbot <>
This commit is contained in:
authored and
1 parent
356b752d58
commit
781ea7cbdc
7 files changed
+98
-16
No files matched your search
@@ -490,7 +490,9 @@ where
|
||||
return true
|
||||
}
|
||||
Self::account(who).free.checked_sub(&value).map_or(false, |new_balance| {
|
||||
Self::ensure_can_withdraw(who, value, WithdrawReasons::RESERVE, new_balance).is_ok()
|
||||
new_balance >= T::ExistentialDeposit::get() &&
|
||||
Self::ensure_can_withdraw(who, value, WithdrawReasons::RESERVE, new_balance)
|
||||
.is_ok()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user