Skip to content

Commit

Permalink
Adding "emit" to event Transfer
Browse files Browse the repository at this point in the history
Thanks to Steve Taylor for spotting the omission.
  • Loading branch information
Chris Dannen committed Jun 4, 2018
1 parent 8472f57 commit db82d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mytoken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ contract MyToken {
balanceOf[_to] += _value;

/* Notify anyone listening that this transfer took place */
Transfer(msg.sender, _to, _value);
emit Transfer(msg.sender, _to, _value);
}
}

0 comments on commit db82d7b

Please sign in to comment.