Skip to content

Commit 0e7cd1e

Browse files
committed
Add study notes for 2025-08-21
1 parent f621625 commit 0e7cd1e

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

segment7.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,40 @@ segment7,成都,前北师大学生,现cs在读,目前使用lens protocol
1515
## Notes
1616

1717
<!-- Content_START -->
18+
# 2025-08-21
19+
20+
> `Storage` 状态变量的“零初始化 zero-initialized”
21+
##### Value Types
22+
23+
- `boolean`: `false`
24+
25+
- `string`: `""`
26+
27+
- `int`: `0`
28+
29+
- `uint`: `0`
30+
31+
- `fixed`: `0.0` (presumably; this type is not fully supported)
32+
33+
- `enum`: the first element of the enum
34+
35+
- `address`: `0x0000000000000000000000000000000000000000` (or `address(0)`)
36+
37+
- `function`
38+
- internal: empty function, returning initial values (if return is needed)
39+
- external: function that throws when called
40+
41+
##### Reference Types
42+
43+
- `mapping`: empty mapping
44+
45+
- `struct`: a struct where all members are set to initial values
46+
47+
- `array`
48+
49+
- dynamically-sized: `[]`
50+
- fixed-sized: an array of the fixed size where all elements are set to initial values
51+
1852
# 2025-08-20
1953

2054
- nested mapping logic

0 commit comments

Comments
 (0)