Skip to content
New issue

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

Fix subdomain name expiration for primary names #191

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Conversation

BriungRi
Copy link
Contributor

@BriungRi BriungRi commented Nov 13, 2024

Summary

Primary names will expire if the name itself is expired. Previously, the expiration logic only looked at the record's expiration timestamp, ignoring cases where there was a subdomain policy to follow the domain's expiration. This PR fixes that

Test Plan

Add a test that checks the exact scenario described above

@BriungRi BriungRi requested a review from davidiw November 13, 2024 17:51
@@ -715,7 +715,7 @@ module aptos_names_v2_1::v2_1_domains {
/// Returns the reverse lookup (the token addr) for an address if any.
public fun get_reverse_lookup(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could probably be a view function...

@davidiw davidiw merged commit f418271 into main Nov 14, 2024
1 check passed
@davidiw davidiw deleted the bl/fix-pn-exp branch November 14, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants