Skip to content

Commit

Permalink
events - add task
Browse files Browse the repository at this point in the history
  • Loading branch information
BiancaIalangi committed Dec 12, 2024
1 parent 22c7270 commit eb95986
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chapters/smart-contracts/lab/content/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,7 @@ The structure of an event is:
And when you want to emit an event, just call the function:
```rust
self.the_function_you_call_when_you_want_to_emit_en_event(field1, field2, field3, field4);
```
```

## Task
Last time you interacted with the [ping-pong contract](https://github.com/multiversx/mx-ping-pong-sc). This time, you have to inspect the contract and call an endpoint that emits an event. Don't forget to check the logs!

0 comments on commit eb95986

Please sign in to comment.