Skip to content

Commit

Permalink
Small typos in anchor-cpi.md leading to failing tests (#635)
Browse files Browse the repository at this point in the history
* Small typos in anchor-cpi.md

Found these small typos while I was going through this lesson.

* Fixed typo leading to failing tests at the end of the lab
  • Loading branch information
banescusebi authored Nov 23, 2024
1 parent 462c9a1 commit 5f8e3ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/courses/onchain-development/anchor-cpi.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ The `cpi` module turns `callee`'s instruction handlers into Rust functions.
These functions take a `CpiContext` and any extra data needed for the
instruction. They work just like the instruction handlers in your Anchor
programs, but use `CpiContext` instead of `Context`. The `cpi` module also
provides the account structs needed for these instruction handler.
provides the account structs needed for these instruction handlers.

For example, if `callee` has the instruction `do_something` that requires the
accounts defined in the `DoSomething` struct, you could invoke `do_something` as
Expand Down Expand Up @@ -394,7 +394,7 @@ pub struct InitializeMint<'info> {
bump,
payer = user,
mint::decimals = 6,
mint::authority = mint,
mint::authority = user,
)]
pub mint: Account<'info, Mint>,
#[account(mut)]
Expand Down Expand Up @@ -672,7 +672,7 @@ it("Initializes the reward token", async () => {
});
```
Notice that we didn't have to add `.accounts` because they call be inferred,
Notice that we didn't have to add `.accounts` because they can be inferred,
including the `mint` account (assuming you have seed inference enabled).
Next, update the test for the `addMovieReview` instruction. The primary
Expand Down

0 comments on commit 5f8e3ff

Please sign in to comment.