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

docs: Update outdated documentation of Context #3561

Conversation

acheroncrypto
Copy link
Collaborator

@acheroncrypto acheroncrypto commented Feb 16, 2025

Problem

As mentioned in #3529, the documentation of Context is outdated:

pub struct Context<'a, 'b, 'c, 'info, T> {
/// Currently executing program id.
pub program_id: &'a Pubkey,
/// Deserialized accounts.
pub accounts: &'b mut T,
/// Remaining accounts given but not deserialized or validated.
/// Be very careful when using this directly.
pub remaining_accounts: &'c [AccountInfo<'info>],
/// Bump seeds found during constraint validation. This is provided as a
/// convenience so that handlers don't have to recalculate bump seeds or
/// pass them in as arguments.
pub bumps: BTreeMap<String, u8>,
}

Summary of changes

Update the outdated documentation of Context to match the current definition.

#3529

Copy link

vercel bot commented Feb 16, 2025

@acheroncrypto is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto added documentation Improvements or additions to documentation fix Bug fix PR labels Feb 16, 2025
@acheroncrypto acheroncrypto merged commit 7ca0ccd into coral-xyz:master Feb 16, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation fix Bug fix PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant