-
Notifications
You must be signed in to change notification settings - Fork 681
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #707 from Aronyu127/tranlate-preservation-level-zhTW
[translate] translate level 16 preservation fro zh-TW
- Loading branch information
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
client/src/gamedata/zh_tw/descriptions/levels/preservation.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
此智慧合約利用一個函式庫來儲存兩個不同時區的兩個不同時間。 建構函數會為每個要儲存的時間創建兩個庫實例。 | ||
本關卡的目標是獲得該合約的所有權。 | ||
|
||
| ||
可能會有用的資訊 | ||
* 查閱 Solidity 文檔中的有關低階函數 `delegatecall` 的信息,包括其工作原理、如何用於委託操作到鏈上庫以及它對執行範圍的影響。 | ||
* 理解 `delegatecall` 保持上下文意味著什麼。 | ||
* 理解儲存變數如何儲存和存取。 | ||
* 理解不同資料類型之間轉換的工作原理。 |
1 change: 1 addition & 0 deletions
1
client/src/gamedata/zh_tw/descriptions/levels/preservation_complete.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
正如前一個等級中的 `delegate` 所提到的,使用 `delegatecall` 調用庫可能存在風險。對於具有自己狀態的合約庫來說,這一點尤其重要。這個例子演示了為什麼應該使用 `library` 關鍵字來構建庫,因為它可以防止庫存儲和訪問狀態變量。 |