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

Add more helpers to get init instructions for extensions #15

Merged
merged 3 commits into from
Oct 10, 2024

Conversation

lorisleiva
Copy link
Member

@lorisleiva lorisleiva commented Oct 10, 2024

This PR renames the getInitializeInstructionsForMintExtensions function to getPreInitializeInstructionsForMintExtensions and adds two new helper functions:

  • getPostInitializeInstructionsForMintExtensions for extensions that needs initializing after the mint account was initialized.
  • getPostInitializeInstructionsForTokenExtensions for getting initialize instructions for token extensions (which must always be used after the token accounts was initialized).

@lorisleiva lorisleiva marked this pull request as ready for review October 10, 2024 14:34
@lorisleiva lorisleiva merged commit 872081d into main Oct 10, 2024
5 checks 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.

1 participant