Skip to content

Commit d6f3338

Browse files
identity: Don't let subs be re-registered (#6667)
* Fixes and tests * Don't set subs be re-registered. Also allow subs to de-register themselves and collect the deposit. Also allow individual registering and removal of subs. * Make it build * Update frame/identity/src/lib.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> * Tests * Add benchmarks * Add some reasonable weights * Docs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
1 parent 30fff46 commit d6f3338

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benchmarking/src/mock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type Staking = pallet_staking::Module<Test>;
3333
type Session = pallet_session::Module<Test>;
3434

3535
impl_outer_origin! {
36-
pub enum Origin for Test where system = frame_system {}
36+
pub enum Origin for Test where system = frame_system {}
3737
}
3838

3939
impl_outer_dispatch! {

src/mock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl From<UintAuthorityId> for MockSessionKeys {
4141
}
4242

4343
impl_outer_origin! {
44-
pub enum Origin for Test where system = frame_system {}
44+
pub enum Origin for Test where system = frame_system {}
4545
}
4646

4747
thread_local! {

0 commit comments

Comments
 (0)