From 463e4fa3944662b7c63c433866af14d2b00fb685 Mon Sep 17 00:00:00 2001 From: Patrick Gray Date: Thu, 3 Jun 2021 09:12:28 -0400 Subject: [PATCH] fix: added statement on closing Clarinet console based on reviewer feedback --- src/pages/write-smart-contracts/counter-tutorial.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/write-smart-contracts/counter-tutorial.md b/src/pages/write-smart-contracts/counter-tutorial.md index 565ae8c1..c666a229 100644 --- a/src/pages/write-smart-contracts/counter-tutorial.md +++ b/src/pages/write-smart-contracts/counter-tutorial.md @@ -81,6 +81,7 @@ The [`define-data-var`][] statement initializes a new integer variable named `co `0`. It's important to note that all definition statements in Clarity need to be at the top of the file. The `counter` variable is stored in the data space associated with the smart contract. The variable is persisted and + acts as a global shared state. To provide access to the `counter` variable from outside the contract that it's defined in, you should declare a @@ -122,6 +123,9 @@ function: The console should return `(ok 0)`. +-> Changes to your contract will not be loaded into the Clarinet console until it is restarted. Close the console with +`Ctrl + C` before proceding to the next step. + ## Step 4: define counter functions In this step, you'll add functions to increment and decrement the counter variable. Add the `increment` function to