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: ensure consistent expiry date on domain entity #87

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

TateB
Copy link

@TateB TateB commented Feb 15, 2024

previously, a NameUnwrapped event could cause a Domain's expiryDate value to be null where (for a .eth name) it should stay the same. this is because the ETH_NODE value (.eth namehash) wasn't 0x-prefixed, being compared against a value that was.

changes:

  • added 0x prefix to ETH_NODE
  • changed ROOT_NODE in registrar to use ByteArray.fromHexString() which allows for 0x-prefixed values.
  • added test case for this issue
  • added test utils

@TateB TateB merged commit c844791 into master Feb 15, 2024
1 check passed
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.

2 participants