Skip to content

Commit

Permalink
Use Inherited event instead of OwnershipTransfered
Browse files Browse the repository at this point in the history
  • Loading branch information
azavalla authored and eternauta1337 committed Jan 18, 2018
1 parent a613cd0 commit a8afb20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/ownership/Inheritable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ contract Inheritable is Ownable {
event HeirChanged(address indexed owner, address indexed newHeir);
event OwnerHeartbeated(address indexed owner);
event OwnerPronouncedDead(address indexed owner, address indexed heir, uint timeOfDeath);
event Inherited(address indexed previousOwner, address indexed newOwner);


/**
Expand Down Expand Up @@ -86,7 +87,7 @@ contract Inheritable is Ownable {
function inherit() public onlyHeir {
require(!ownerLives());
require(now >= timeOfDeath + heartbeatTimeout);
OwnershipTransferred(owner, heir);
Inherited(owner, heir);
owner = heir;
timeOfDeath = 0;
}
Expand Down

0 comments on commit a8afb20

Please sign in to comment.