Skip to content
Snippets Groups Projects
Commit 1a02ab39 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

fix(#125): fix: wrong place for incrementing initial sufficients

parent 9de406b2
No related branches found
No related tags found
No related merge requests found
Pipeline #33724 waiting for manual action
...@@ -127,9 +127,6 @@ pub mod pallet { ...@@ -127,9 +127,6 @@ pub mod pallet {
account.data.free = *balance; account.data.free = *balance;
account.providers = 1; account.providers = 1;
} }
if *is_identity {
account.sufficients = 1;
}
}); });
} }
} }
......
...@@ -311,7 +311,7 @@ pub fn new_test_ext( ...@@ -311,7 +311,7 @@ pub fn new_test_ext(
frame_support::BasicExternalities::execute_with_storage(&mut t, || { frame_support::BasicExternalities::execute_with_storage(&mut t, || {
// manually increment genesis identities sufficient counter // manually increment genesis identities sufficient counter
// In real world, this should be handle manually by genesis creator // In real world, this is done by pallet-identity
for i in 1..=initial_identities_len { for i in 1..=initial_identities_len {
frame_system::Pallet::<Test>::inc_sufficients(&(i as u64)); frame_system::Pallet::<Test>::inc_sufficients(&(i as u64));
} }
......
...@@ -128,8 +128,6 @@ pub fn new_test_ext(gen_conf: pallet_identity::GenesisConfig<Test>) -> sp_io::Te ...@@ -128,8 +128,6 @@ pub fn new_test_ext(gen_conf: pallet_identity::GenesisConfig<Test>) -> sp_io::Te
gen_conf.assimilate_storage(&mut t).unwrap(); gen_conf.assimilate_storage(&mut t).unwrap();
frame_support::BasicExternalities::execute_with_storage(&mut t, || { frame_support::BasicExternalities::execute_with_storage(&mut t, || {
// Some dedicated test account
frame_system::Pallet::<Test>::inc_sufficients(&account(1));
frame_system::Pallet::<Test>::inc_providers(&account(2)); frame_system::Pallet::<Test>::inc_providers(&account(2));
frame_system::Pallet::<Test>::inc_providers(&account(3)); frame_system::Pallet::<Test>::inc_providers(&account(3));
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment