1

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);

1

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

| improve this answer | |

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