Skip to content

Commit 7b77185

Browse files
committed
requested changes made
1 parent 295896d commit 7b77185

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lessons/projects/1.mdx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,14 @@ contract WAGMI {
288288

289289
In Solidity , there are 3 types of variable visibility modifiers that a developer can use :
290290

291-
- **Public**: If a state variable visibility is marked as `public` then those variables can be used within the smart contract and can be accessed by other contracts as well.
291+
- **Public**: If a state variable visibility is marked as `public` then those variables can be used within the smart contract and can be accessed by other contracts as well.Compilers automatically generates functions to read its value when calling the contract, they are called 'getter' functions
292292

293-
- **Internal**: A state variable with a `internal` visibility can only be accessed within the smart contract and its subclasses. It can *NOT* be accessed externally.
293+
- **Internal**: A state variable with a `internal` visibility can only be accessed within the smart contract and its derived contracts. It can *NOT* be accessed externally. This is the default for state variables when no visibilty is specified.
294294

295-
- **Private**: When a state variable visibility is marked as `private` then it means , that it is only ment to be used within the defined smart contract . No subclasses and no external function should access a variable with a `private` visibility.
295+
- **Private**: When a state variable visibility is marked as `private` then it means , that it is only meant to be used within the defined smart contract . No derived contract can read a variable with a variable with a `private` visibility.
296+
297+
> [!INFO]
298+
> While private and internal are not readable or modifiable from other contracts, its values are set on a public blockchain, making its values visible from the outside world.
296299
297300
#### Which visibility should I use ?
298301

@@ -701,7 +704,7 @@ you see the magical spell that is being cast here?
701704
![Wizard Wooshing on Successful Lesson](/assets/lessons/1/img_10.png)
702705

703706
Before you go ahead and tell us: **what your future in web3 is,** have a check
704-
on what you didn’t know a little while ago, and what you know now! \*
707+
on what you didn’t know a little while ago, and what you know now! *
705708

706709
Apart from a user wallet, what else uses a blockchain (Ethereum) address?
707710

0 commit comments

Comments
 (0)