Skip to content

Conversation

@samuelvanderwaal
Copy link
Contributor

No description provided.

} else {
// Validate the mint and owner.
let creator_ta =
TokenAccount::try_deserialize(&mut &creator_ta_info.data.borrow()[..])?;
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this check that the account is owned by token 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.

No, but the transfer will fail if it's not owned by a token program. However, explicit checks are better than implicit so I added an account owner check here.

@richardwu richardwu merged commit 26b5762 into main Feb 4, 2025
1 check passed
@richardwu richardwu deleted the fix/creators-transfer branch February 4, 2025 15:31
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