diff --git a/content/courses/onchain-development/intro-to-anchor.md b/content/courses/onchain-development/intro-to-anchor.md index 4813ef35b..76aff362d 100644 --- a/content/courses/onchain-development/intro-to-anchor.md +++ b/content/courses/onchain-development/intro-to-anchor.md @@ -21,7 +21,7 @@ description: "Create your first Solana onchain program in Anchor." ## Lesson Before we begin, make sure you have Anchor installed. You can follow this lesson -on [local-setup](/content/onchain-development/local-setup.md). +on [local-setup](/developers/courses/onchain-development/local-setup.md). Solana's capacity to execute arbitrary code is a key part of its power. Solana programs, (sometimes called "smart contracts"), are the very foundation of the @@ -305,7 +305,7 @@ account_info.key == expected_program account_info.executable == true ``` -### Add constraints with `#[account(..)]` +### Add constraints with Account The `#[account(..)]` attribute macro is used to apply constraints to accounts. We'll go over a few constraint examples in this and future lessons, but at some @@ -354,7 +354,7 @@ pub user: Signer<'info>, Note that the `init` constraint placed on `account_name` automatically includes a `mut` constraint so that both `account_name` and `user` are mutable accounts. -### `#[account]` +### Account The `#[account]` attribute is applied to structs representing the data structure of a Solana account. It implements the following traits: