mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-06 03:18:01 +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:
@@ -448,7 +448,7 @@ pub mod pallet {
|
||||
for (account, val, keys) in self.keys.iter().cloned() {
|
||||
<Pallet<T>>::inner_set_keys(&val, keys)
|
||||
.expect("genesis config must not contain duplicates; qed");
|
||||
if frame_system::Pallet::<T>::inc_consumers(&account).is_err() {
|
||||
if frame_system::Pallet::<T>::inc_consumers_without_limit(&account).is_err() {
|
||||
// This will leak a provider reference, however it only happens once (at
|
||||
// genesis) so it's really not a big deal and we assume that the user wants to
|
||||
// do this since it's the only way a non-endowed account can contain a session
|
||||
|
||||
Reference in New Issue
Block a user