Skip to content

Commit

Permalink
fix(lesson-15): fix syntax errors in js code snippet (CryptozombiesHQ…
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleynguyen authored Dec 28, 2021
1 parent fe9b7c3 commit 952324c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions en/15/02.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,13 @@ myContract.events.EventName(async (err, event) => {
The above snippet just listens for an event called `EventName`. For more complex use cases, you could also specify a `filter` like so:

```JavaScript
myContract.events.EventName({ filter: { myParam: 1 } ,async (err, event) => {
if (err) {
console.error('Error on event', err)
return
}
// Do something
})
myContract.events.EventName({ filter: { myParam: 1 } }, async (err, event) => {
if (err) {
console.error('Error on event', err)
return
}
// Do something
})

```

Expand Down

0 comments on commit 952324c

Please sign in to comment.