It could be useful to include the identity index of the newly created identity in the identity.created event.
Already there:
pub enum Event<T: Config> { /// A new identity has been created. IdtyCreated { idty_index: T::IdtyIndex, owner_key: T::AccountId, }, /// An identity has been confirmed by its owner. IdtyConfirmed { idty_index: T::IdtyIndex, owner_key: T::AccountId, name: IdtyName, }, /// An identity has been validated. IdtyValidated { idty_index: T::IdtyIndex }, IdtyChangedOwnerKey { idty_index: T::IdtyIndex, new_owner_key: T::AccountId, }, /// An identity has been revoked. IdtyRevoked { idty_index: T::IdtyIndex, reason: RevocationReason, }, /// An identity has been removed. IdtyRemoved { idty_index: T::IdtyIndex, reason: RemovalReason, },}
remove "owner_key" in identity confirmation event.
ok
Hugo Trentesauxchanged title from Add index of newly created identity in creation event to Remove "owner_key" in identity confirmation event
changed title from Add index of newly created identity in creation event to Remove "owner_key" in identity confirmation event