Skip to content

Commit d451459

Browse files
committed
Update study notes for 2025-08-17
1 parent 174cc54 commit d451459

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

15998431520.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ contract Fallback {
8080

8181
第三关
8282

83-
通过条件:成为合约的owner
84-
解法:直接调用contract.Fal1out()方法即可
85-
优化:Fal1out应该使用contructor关键词来定义,而非自定义函数。
83+
通过条件:成为合约的 `owner`
84+
85+
解法:直接调用 `contract.Fal1out()` 方法即可
86+
87+
优化:`Fal1out` 应该使用 `contructor` 关键词来定义,而非自定义函数(会有安全漏洞,任何人都能成为合约的 `owner`)。
8688

8789
# 2025-08-16
8890

0 commit comments

Comments
 (0)