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

feat(pods): use referral in mint validation #479

Merged
merged 17 commits into from
Jul 16, 2024

Conversation

mmackz
Copy link
Collaborator

@mmackz mmackz commented Jul 15, 2024

Fixes BOOST-4258

https://linear.app/rh-app/issue/BOOST-4258/update-pods-to-use-referral-param-in-mint-validation-function

@mmackz mmackz requested a review from a team as a code owner July 15, 2024 04:08
Copy link

changeset-bot bot commented Jul 15, 2024

🦋 Changeset detected

Latest commit: 4c52d23

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@rabbitholegg/questdk-plugin-pods Minor
@rabbitholegg/questdk-plugin-registry Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

{ mintReferral: checksumAddress },
{
rewardsRecipients: {
$and: [{ $first: checksumAddress }, { $last: checksumAddress }],
Copy link
Collaborator Author

@mmackz mmackz Jul 16, 2024

Choose a reason for hiding this comment

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

@Quazia We want to make sure that the referral is the only item in the array. Would using an array literal work better here? ie: rewardsRecipients: [checksumAddress]

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Used the array literal instead of $and.

@mmackz mmackz merged commit 1f3dfb0 into main Jul 16, 2024
9 checks passed
@mmackz mmackz deleted the matthew/boost-4258-update-pods-to-use-referral-param branch July 16, 2024 19:15
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