Skip to content

Conversation

@samuelvanderwaal
Copy link
Contributor

@samuelvanderwaal samuelvanderwaal commented Oct 31, 2024

This is not blocking me; I'm just being a good citizen and fixing things.

[new PublicKey(collection).toBuffer()],
[
new PublicKey(collection).toBuffer(),
paymentMint ? paymentMint.toBuffer() : SystemProgram.programId.toBuffer(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Did this second param get added recently? Or under the hood does it default to the system program if the payment mint isn't specified? Curious why we previously didn't have to specify the system program

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's possible they changed the derivation of this after this code was written; there were a number of breaking changes to WNS during our original integration efforts. I verified in their source code this is the correct way to do it.

@samuelvanderwaal samuelvanderwaal merged commit d9a1fd4 into main Nov 7, 2024
1 check passed
@samuelvanderwaal samuelvanderwaal deleted the fix/wns-distribution-pda branch November 7, 2024 20:29
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