Skip to content
Snippets Groups Projects
Commit 6d86b8ff authored by poka's avatar poka
Browse files

feat: can cert NotMember account

parent d9338e92
No related branches found
No related tags found
No related merge requests found
Pipeline #39039 waiting for manual action
...@@ -365,9 +365,7 @@ class SubstrateSdk with ChangeNotifier { ...@@ -365,9 +365,7 @@ class SubstrateSdk with ChangeNotifier {
final certRemovableDuration = (removableOn - blocNumber) * 6; final certRemovableDuration = (removableOn - blocNumber) * 6;
const int renewDelay = 2 * 30 * 24 * 3600; // 2 months const int renewDelay = 2 * 30 * 24 * 3600; // 2 months
if (toStatus == IdtyStatus.notMember) { if (certRemovableDuration >= renewDelay) {
return CertState(status: CertStatus.none);
} else if (certRemovableDuration >= renewDelay) {
final certRenewDuration = certRemovableDuration - renewDelay; final certRenewDuration = certRemovableDuration - renewDelay;
return CertState(status: CertStatus.canRenewIn, duration: Duration(seconds: certRenewDuration)); return CertState(status: CertStatus.canRenewIn, duration: Duration(seconds: certRenewDuration));
} else if (nextIssuableOn > blocNumber) { } else if (nextIssuableOn > blocNumber) {
......
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