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

Update zh version from latest en version #172

Merged
merged 12 commits into from
Oct 12, 2024
4 changes: 2 additions & 2 deletions src/zh/concepts/processes.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ ao.send({

```lua
ao.spawn(ao.env.Module.Id, {
['Memory-Limit'] = "500-mb",
['Compute-Limit"] = "900000000000000000"
["Memory-Limit"] = "500-mb",
["Compute-Limit"] = "900000000000000000"
})
```

Expand Down
2 changes: 1 addition & 1 deletion src/zh/guides/aos/blueprints/token.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Handlers.add('transfer', Handlers.utils.hasMatchingTag('Action', 'Transfer'), fu
Action = 'Credit-Notice',
Sender = msg.From,
Quantity = tostring(qty),
Data = Colors.gray .. "You received " .. Colors.blue .. msg.Quantity .. Colors.gray .. " from " .. Colors.green .. msg.Recipient .. Colors.reset
Data = Colors.gray .. "You received " .. Colors.blue .. msg.Quantity .. Colors.gray .. " from " .. Colors.green .. msg.From .. Colors.reset
})
end
else
Expand Down
2 changes: 1 addition & 1 deletion src/zh/tutorials/begin/tokengating.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Handlers.add(
"Broadcast",
Handlers.utils.hasMatchingTag("Action", "Broadcast"),
function(m)
if tonumber(Balances[m.From]) < 1 then
if Balances[m.From] == nil or tonumber(Balances[m.From]) < 1 then
print("UNAUTH REQ: " .. m.From)
return
end
Expand Down
2 changes: 1 addition & 1 deletion src/zh/tutorials/bots-and-games/ao-effect.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ aos
让我们保留我们的游戏服务器 ID 以便快速访问:

```lua
Game = "0rVZYFxvfJpO__EfOz0_PUQ3GFE9kEaES0GkUDNXjvE"
Game = "tm1jYBC0F2gTZ0EuUQKq5q_esxITDFkAG6QEpLbpI9I"
```

瞧! 你已准备好加入游戏。
Expand Down
4 changes: 2 additions & 2 deletions src/zh/welcome/testnet-info/cred-and-quests.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ aos> Say("/Quests:2", "Quests")

本教程的[机器人和游戏](/tutorials/bots-and-games/index)将详细介绍任务2的操作步骤

## 何完成任务
## 如何完成任务

只要按照任务描述中的所有 步骤操作,包括提交领取奖励,就算完成任务啦!

Expand All @@ -100,4 +100,4 @@ Your CRED balance has not been checked yet. Updating now. # sample output
CRED Balance updated: 500.000 # sample output
```

了解有关 [aos 蓝图](/guides/aos/blueprints/index)的更多信息。
了解有关 [aos 蓝图](/guides/aos/blueprints/index)的更多信息。
Loading