Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[translate] translate level 16 preservation fro zh-TW #707

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions client/src/gamedata/zh_tw/descriptions/levels/preservation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
此智慧合約利用一個函式庫來儲存兩個不同時區的兩個不同時間。 建構函數會為每個要儲存的時間創建兩個庫實例。
本關卡的目標是獲得該合約的所有權。

 
可能會有用的資訊
* 查閱 Solidity 文檔中的有關低階函數 `delegatecall` 的信息,包括其工作原理、如何用於委託操作到鏈上庫以及它對執行範圍的影響。
* 理解 `delegatecall` 保持上下文意味著什麼。
* 理解儲存變數如何儲存和存取。
* 理解不同資料類型之間轉換的工作原理。
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
正如前一個等級中的 `delegate` 所提到的,使用 `delegatecall` 調用庫可能存在風險。對於具有自己狀態的合約庫來說,這一點尤其重要。這個例子演示了為什麼應該使用 `library` 關鍵字來構建庫,因為它可以防止庫存儲和訪問狀態變量。
Loading