Using events

We saw how to use events in Chapter 8, Exceptions, Events, and Logging. Events can be trapped and can help provide relevant information about the current execution. Contracts should declare events and functions should invoke these events at appropriate locations with information that provides enough context to whoever is reading these events.

Get Solidity Programming Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.