From 70e822e25be251c0c96f8a2a6f2df66c218c1331 Mon Sep 17 00:00:00 2001 From: Mayank Agarwal Date: Fri, 15 Nov 2024 16:29:55 +0000 Subject: [PATCH 1/2] Fixed reference of Update type implementation --- .gitpod.yml | 9 +++++++++ content/courses/onchain-development/intro-to-anchor.md | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 000000000..9d28e27e5 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,9 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) +# and commit this file to your remote git repository to share the goodness with others. + +# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart + +tasks: + - init: pnpm install && pnpm run build + command: pnpm run start diff --git a/content/courses/onchain-development/intro-to-anchor.md b/content/courses/onchain-development/intro-to-anchor.md index 76aff362d..f80ec09ff 100644 --- a/content/courses/onchain-development/intro-to-anchor.md +++ b/content/courses/onchain-development/intro-to-anchor.md @@ -645,7 +645,7 @@ pub struct Update<'info> { Lastly, within `#[program]`, let's implement an `increment` instruction handler to increment the `count` once a `counter` account is initialized by the first instruction handler. This instruction handler requires a `Context` of type -`Update` (implemented in the next step) and takes no additional instruction +`Update` (implemented in the previous step) and takes no additional instruction data. In the instruction logic, we are simply incrementing an existing `counter` account's `count` field by `1`. From 1eecda18dc111b9c14ccd679f0a4d1413c5b4e24 Mon Sep 17 00:00:00 2001 From: Mayank Agarwal <98695348+Mayank1170@users.noreply.github.com> Date: Sun, 24 Nov 2024 10:43:18 +0530 Subject: [PATCH 2/2] Removed .gitpod.yml --- .gitpod.yml | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml deleted file mode 100644 index 9d28e27e5..000000000 --- a/.gitpod.yml +++ /dev/null @@ -1,9 +0,0 @@ -# This configuration file was automatically generated by Gitpod. -# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) -# and commit this file to your remote git repository to share the goodness with others. - -# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart - -tasks: - - init: pnpm install && pnpm run build - command: pnpm run start