mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 13:01:01 +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:
@@ -788,7 +788,7 @@ pub mod pallet {
|
||||
return false
|
||||
}
|
||||
a.flags.set_new_logic();
|
||||
if !a.reserved.is_zero() || !a.frozen.is_zero() {
|
||||
if !a.reserved.is_zero() && a.frozen.is_zero() {
|
||||
if system::Pallet::<T>::providers(who) == 0 {
|
||||
// Gah!! We have no provider refs :(
|
||||
// This shouldn't practically happen, but we need a failsafe anyway: let's give
|
||||
|
||||
Reference in New Issue
Block a user