From 704ab0f69b80c0c00b1fccd331501956c583c64c Mon Sep 17 00:00:00 2001 From: acheron Date: Sun, 16 Feb 2025 23:59:52 +0100 Subject: [PATCH] docs: Update outdated documentation of `Context` --- docs/content/docs/basics/program-structure.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/content/docs/basics/program-structure.mdx b/docs/content/docs/basics/program-structure.mdx index e0a03fb698..0a3397c272 100644 --- a/docs/content/docs/basics/program-structure.mdx +++ b/docs/content/docs/basics/program-structure.mdx @@ -145,7 +145,7 @@ The type provides the instruction with access to the following non-argument inputs: ```rust -pub struct Context<'a, 'b, 'c, 'info, T> { +pub struct Context<'a, 'b, 'c, 'info, T: Bumps> { /// Currently executing program id. pub program_id: &'a Pubkey, /// Deserialized accounts. @@ -156,7 +156,8 @@ pub struct Context<'a, 'b, 'c, 'info, T> { /// 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, + /// Type is the bumps struct generated by #[derive(Accounts)] + pub bumps: T::Bumps, } ```