Skip to content

Conversation

@drichar
Copy link
Contributor

@drichar drichar commented Jul 8, 2025

Description

This PR fixes reservation information extraction in the resolve method by reading from the actual on-chain state field i.reservedOwner.a instead of verified properties. This enables proper NFD claiming functionality for reserved NFDs.

Details

  • Changed reservedFor parsing from verified['reservedFor'] to parseAddress('i.reservedOwner.a', globalState)
  • Added top-level reservedFor property to NFD objects for consistent access
  • Added properties.internal.reservedOwner property as alternative access path
  • Fixed issue where reservation data was missing from resolve responses
  • Enables proper validation of NFD claiming eligibility for reserved NFDs

Fix reservation information extraction in `resolve` method by reading from
actual on-chain state field 'i.reservedOwner.a' instead of verified
properties. This enables proper NFD claiming functionality for reserved
NFDs.

Previously, `reservedFor` was incorrectly sourced from verified properties
which do not contain the reservation data. Now correctly parses the
reservation address from global state and adds it to both top-level NFD
object and internal properties for consistent access patterns.
@drichar drichar merged commit 8272bd7 into main Jul 8, 2025
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