Skip to content
Permalink
Browse files

Addimg "

  • Loading branch information...
chrisdannen committed Jun 4, 2018
1 parent db82d7b commit 20aca4f4e899b37669e51726d6673bb41a179a76
Showing with 1 addition and 1 deletion.
  1. +1 −1 owned.sol
@@ -9,7 +9,7 @@ contract Owned {

event NewOwner(address indexed old, address indexed current);

function setOwner(address _new) only_owner { NewOwner(owner, _new); owner = _new; }
function setOwner(address _new) only_owner { emit NewOwner(owner, _new); owner = _new; }

address public owner = msg.sender;
}

1 comment on commit 20aca4f

@chrisdannen

This comment has been minimized.

Copy link
Owner Author

commented on 20aca4f Jun 4, 2018

Adding "emit" to the event NewOwner.

Please sign in to comment.
You can’t perform that action at this time.