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

doc: optimize Chinese translation #755

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
12 changes: 12 additions & 0 deletions client/src/gamedata/zh_cn/descriptions/levels/magicnum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

要通过这个关卡,你只需要向 Ethernaut 提供一个`Solver`合约,其对`whatIsTheMeaningOfLife()`能够返回正确的 32 字节的响应。

容易吧?
嗯。。。有一个问题。

`Solver`的代码必须非常小,小到最多只能 10 bytes。

提示:是时候离开 solidity 的舒适区了,应该自己手动构建一个编译器了 O_o。
没错,就是原始的 EVM 字节码。

祝你好运!
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

恭喜!如果您通过了本关,您就可以自称宇宙大师了。

继续用 Magnum 的视角观察任何一个物体。现在,尝试将其从远处移动;你的心灵遥感能力可能刚刚开始发挥作用。
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
正如上一关`delegate`提到的,使用`delegatecall`来调用库函数可能存在风险。对于有自己状态合约库
来说尤其如此。这个例子演示了为什么使用`library`关键字构建库,因为它可以防止库存储和访问状态变量。
2 changes: 1 addition & 1 deletion client/src/gamedata/zh_cn/descriptions/levels/recovery.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
合约创建者构建了一个非常简单的代币工厂合约。 任何人都可以轻松创建新代币。 在部署了一个代币合约后,创建者发送了 `0.001` 以太币以获得更多代币。 后边他们丢失了合约地址。

如果您能从丢失的的合约地址中找回(或移除),则顺利通过此关。
如果您能从丢失的的合约地址中找回(或移除)`0.001`以太币,则顺利通过此关。