From 58492dbb92e57d0c8258ae52b76bcab67b61c2da Mon Sep 17 00:00:00 2001 From: Stefano Date: Thu, 30 May 2024 15:28:22 +0200 Subject: [PATCH] Docs: Add clarification on file location for smart contract sections in tutorial Going through the tutorial as a total beginner, it was not clear to me where these three sections should have been written. Added a sentence to specify that the sections of our first smart contract should be written in the ./Counter/contract/counter.fc file. --- 02-contract/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02-contract/index.md b/02-contract/index.md index b3bb389..547611e 100644 --- a/02-contract/index.md +++ b/02-contract/index.md @@ -51,7 +51,7 @@ cd your_project_directory ## Step 4: Structuring our smart contract -Much like everything else in life, smart contracts in FunC are divided into 3 sections. These sections are: *storage*, *messages* and *getters*. +Much like everything else in life, smart contracts in FunC are divided into 3 sections. These sections are: *storage*, *messages* and *getters*. We are going to write these three sections of our first smart contract in the `./Counter/contract/counter.fc` file. The **storage** section deals with our contract's persistent data. Our contract will have to store data between calls from different users, for example the value of our *counter* variable. To write this data to state storage, we will need a write/encode function and to read this data back from state storage, we will need a read/decode function.