Skip to content

Commit

Permalink
Update events.md
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
duydcoco authored Jan 30, 2018
1 parent 27c7482 commit 96e4870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zh/1/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ YourContract.IntegersAdded(function(error, result) {

我们想每当一个僵尸创造出来时,我们的前端都能监听到这个事件,并将它显示出来。

1. 定义一个 `事件` 叫做 `NewZombie`. 它可以含有 `zombieId` (`uint`), `name` (`string`), 和 `dna` (`uint`).
1. 定义一个 `事件` 叫做 `NewZombie`. 它有3个参数: `zombieId` (`uint`), `name` (`string`), 和 `dna` (`uint`).

2. 修改 `_createZombie` 函数使得当新僵尸造出来并加入`zombies`数组后,生成事件`NewZombie`

Expand Down

0 comments on commit 96e4870

Please sign in to comment.