Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
owner can't be set as heir
  • Loading branch information
azavalla committed Nov 30, 2017
commit a31ba007b68a088dca13c700cf39b7ad45524c88
1 change: 1 addition & 0 deletions contracts/ownership/Inheritable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ contract Inheritable is Ownable {
}

function setHeir(address newHeir) public onlyOwner {
require(newHeir != owner);
heartbeat();
HeirChanged(owner, newHeir);
heir = newHeir;
Expand Down