File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments