We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an expiry time using:
info, _ := proofOfHumanity.PohCaller.GetSubmissionInfo(nil, common.HexToAddress(address)) submissionTime := time.Unix(int64(info.SubmissionTime), 0) fmt.Println("registration date", submissionTime.Format("01-02-2006 15:04:05")) submissionDurationSeconds, _ := proofOfHumanity.PohCaller.SubmissionDuration(nil) submissionDuration := time.Duration(submissionDurationSeconds) * time.Second expiryTime := submissionTime.Add(submissionDuration) remainingDuration := expiryTime.Sub(time.Now()) fmt.Println("remaining time:", remainingDuration) fmt.Println("remaining days:", remainingDuration.Hours()/24) fmt.Println("remaining months:", remainingDuration.Hours()/24/30) ```
The text was updated successfully, but these errors were encountered:
JeremyPansier
When branches are created from issues, their pull requests are automatically linked.
Add an expiry time using:
The text was updated successfully, but these errors were encountered: