diff --git a/pallets/duniter-wot/src/tests.rs b/pallets/duniter-wot/src/tests.rs index 42f255fa8bdbd844c792f69a0eedf8d3de6ea4e3..91690570c48b864f94b3812aab2d0ffd689b5205 100644 --- a/pallets/duniter-wot/src/tests.rs +++ b/pallets/duniter-wot/src/tests.rs @@ -155,6 +155,18 @@ fn test_new_idty_validation() { WotDiff::AddLink(2, 6) ] ); + + // After PendingMembershipPeriod, Ferdie identity should not expire + run_to_block(6); + assert_eq!( + Identity::identity(6), + Some(pallet_identity::IdtyValue { + next_creatable_identity_on: 0, + owner_key: 6, + removable_on: 0, + status: IdtyStatus::Validated, + }) + ); }); } diff --git a/pallets/identity/src/types.rs b/pallets/identity/src/types.rs index 02931d2243441f804253657780a27a050a03cf37..456cf3023c6ebd517c5d9b8b8bf8969abf0dc967 100644 --- a/pallets/identity/src/types.rs +++ b/pallets/identity/src/types.rs @@ -77,7 +77,7 @@ impl Default for IdtyStatus { } } -#[cfg_attr(feature = "std", derive(Deserialize, Serialize))] +#[cfg_attr(feature = "std", derive(Debug, Deserialize, Serialize))] #[derive(Encode, Decode, Clone, PartialEq, Eq, TypeInfo)] pub struct IdtyValue<BlockNumber, AccountId> { pub next_creatable_identity_on: BlockNumber,