This question already has an answer here:

For example, event CoinTransfer(address sender, address receiver, uint amount);

What is the difference between CoinTransfer(msg.sender, receiver, amount); and emit CoinTransfer(msg.sender, receiver, amount);

marked as duplicate by Ismael, Richard Horrocks, shane, flygoing, Achala Dissanayake Nov 14 '18 at 3:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


As of Solidity 0.4.21, the emit keyword has been added to explicitly call events.

Not the answer you're looking for? Browse other questions tagged or ask your own question.