Skip to content

Conversation

justinbarry
Copy link
Contributor

Summary

  • Added a new GetClaimKey query message to the reclaim_user_map contract
  • Implemented the query handler to return the claim key stored during contract instantiation

Changes

  • Added GetClaimKey {} variant to QueryMsg enum with #[returns(String)] attribute
  • Implemented query handler that loads and returns the claim key from CLAIM_VALUE_KEY storage

Test plan

  • Build the contract to ensure no compilation errors
  • Deploy and test the new query returns the expected claim key
  • Verify existing queries still work as expected

Added a new query message to retrieve the claim key that was set during contract instantiation. This allows external contracts or clients to query which claim key the contract is configured to use.
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.

1 participant