mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-10 12:47:06 +00:00
Fix update_lock (#10485)
* Fix update_lock * Fixes * Formatting * add `inc_consumers_without_limits` to session too Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
1 parent
1d3b51361a
commit
7ee25416c2
4 files changed
+56
-11
No files matched your search
@@ -971,7 +971,7 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
|
||||
} else {
|
||||
Locks::<T, I>::insert(who, bounded_locks);
|
||||
if !existed {
|
||||
if system::Pallet::<T>::inc_consumers(who).is_err() {
|
||||
if system::Pallet::<T>::inc_consumers_without_limit(who).is_err() {
|
||||
// No providers for the locks. This is impossible under normal circumstances
|
||||
// since the funds that are under the lock will themselves be stored in the
|
||||
// account and therefore will need a reference.
|
||||
|
||||
Reference in new issue
Block a user