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 account info and pubkey helpers #21

Merged
merged 1 commit into from
Oct 1, 2024
Merged

Add account info and pubkey helpers #21

merged 1 commit into from
Oct 1, 2024

Conversation

febo
Copy link
Owner

@febo febo commented Oct 1, 2024

This PR adds a few helpers:

  • get_account_info macro to get an account info from the accounts array by index. The helper does a range check to see if the index is valid.
  • compare and copy Pubkey helpers using syscalls to improve CU of those operations.

@febo febo merged commit dd36317 into main Oct 1, 2024
3 checks passed
@febo febo deleted the helpers branch October 1, 2024 22:09
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