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

fix: spend program owned account with program keypair #1029

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

ananas-block
Copy link
Contributor

Issue:

  • program owned accounts can be spend by the program keypair with the invoke system program instruction

Solution:

  • add check to reject accounts with data as input accounts in invoke
  • add check to not allow program owned account creation without data

@ananas-block ananas-block requested a review from vadorovsky as a code owner July 24, 2024 23:38
@ananas-block ananas-block force-pushed the jorrit/fix-program-owned-accounts branch from 965c68b to 9b42cba Compare July 24, 2024 23:40
@ananas-block ananas-block force-pushed the jorrit/fix-program-owned-accounts branch from 9b42cba to 85e8831 Compare July 25, 2024 16:09
@ananas-block ananas-block merged commit 203296b into main Jul 25, 2024
13 checks passed
@ananas-block ananas-block deleted the jorrit/fix-program-owned-accounts branch July 25, 2024 16:39
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