Skip to content

Commit 5c1b07b

Browse files
committed
Callout fixed
1 parent 7b77185 commit 5c1b07b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lessons/projects/1.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,10 @@ contract WAGMI {
294294

295295
- **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.
296296

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.
299-
297+
<ContentCallout emoji='💡' size='md' variant='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.
299+
</ContentCallout>
300+
300301
#### Which visibility should I use ?
301302

302303
A simple answer to this is , start with giving every variable a `private` visibility then as you move further in contract developement modify variables to `internal` visibility as a next step of modification. Try to use `public` visibility as little as possible in order to be gas efficient and making less vulnerabilities in the smart contract.

0 commit comments

Comments
 (0)