From 333ef60a8c9f1e5db6187901e249e0c90e12173d Mon Sep 17 00:00:00 2001 From: Will Frost <37545822+Frostist@users.noreply.github.com> Date: Thu, 14 Nov 2024 17:46:24 +0200 Subject: [PATCH] Update intro-to-anchor.md (#605) Updated local-setup button to work, currently takes you to dead link. Also updated Header's "Add constraints with #[account(..)] " and "#[account] " As they both didn't work on the side bar. --- content/courses/onchain-development/intro-to-anchor.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: