29 - Emit
Events are emitted using emit
, followed by the name of the event and the arguments e.g. emit Deposit(msg.sender, _id, msg.value);
- Events Declaraction -> Emit
- Emit -> Event Log
emit Deposit(msg.sender, _id, msg.value);
- Emit Correct Event
- Emit Correct Parameters