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

Return index of matching owner for a program account #30337

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented Feb 15, 2023

Problem

The account_matches_owner() API doesn't return which owner matches the program account's owner. The information is needed while processing the transactions. The API could be updated to return this information.

Summary of Changes

The API is updated to return the owner information (the index of the matching owner in owners array). Also, updated unit tests.

Fixes #

Copy link
Contributor

@yhchiang-sol yhchiang-sol left a comment

Choose a reason for hiding this comment

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

The PR looks good. Good extension to further indicate which owner matches.

@pgarg66 pgarg66 added the automerge Merge this Pull Request automatically once CI passes label Feb 15, 2023
@mergify mergify bot merged commit 3bea5fc into solana-labs:master Feb 15, 2023
@pgarg66 pgarg66 deleted the update-match-program-api branch February 15, 2023 20:25
nickfrosty pushed a commit to nickfrosty/solana that referenced this pull request Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants