Skip to content

Commit

Permalink
Fix 'zombieID' variable in events.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vitumenezes committed Nov 7, 2019
1 parent 5a6728e commit 6a35c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pt/1/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ YourContract.IntegersAdded(function(error, result) {

Queremos um evento que avise o frontend toda vez que um novo zumbi for criado, então o aplicativo pode mostrá-lo.

1. Declare um `event` chamado `NewZombie`. Este deve passar os parâmetros `zombieID` (um `uint`), `name` (uma `string`), e `dna` (um `uint`).
1. Declare um `event` chamado `NewZombie`. Este deve passar os parâmetros `zombieId` (um `uint`), `name` (uma `string`), e `dna` (um `uint`).

2. Modifique a função `_createZombie` para disparar o evento `NewZombie` após adicionar o novo Zumbi em nosso array `zombies`

Expand Down

0 comments on commit 6a35c71

Please sign in to comment.