Emitting events
To emit an event from a program, use the emit
statement:
Emitting events has the following restrictions:
Events can only be invoked in an
emit
statement.This means events cannot be assigned to variables or used as function parameters.
Events can only be emitted from the location in which they are declared.
Last updated