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

[WIP] create ata on withdrawal if it does not exist #115

Merged
merged 2 commits into from
Dec 25, 2023

Conversation

Yolley
Copy link
Collaborator

@Yolley Yolley commented Dec 15, 2023

  • when withdraw/cancel methods are called, check whether Recipient ATA exists
  • if it does not, add an instruction to create it

/**
* Utility function that checks whether associated token account for the recipient exists and adds an instruction to add if not
*/
private async checkAssociatedTokenAccount(
Copy link
Contributor

Choose a reason for hiding this comment

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

Love it! Yet, let's move it out of StreamClient. It's bulky already :D

@Yolley Yolley merged commit 977658b into master Dec 25, 2023
1 check passed
@Yolley Yolley deleted the oleg/feature/create_ata_on_withdraw branch December 25, 2023 12:24
Copy link

@Yolley Yolley restored the oleg/feature/create_ata_on_withdraw branch December 25, 2023 12:58
@Yolley Yolley deleted the oleg/feature/create_ata_on_withdraw branch January 16, 2024 14:19
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