Skip to content
Merged
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
Deleted unnecessary function.
  • Loading branch information
nventuro committed Aug 24, 2018
commit 157308665480e09419a814f64a225860a4b32364
9 changes: 1 addition & 8 deletions contracts/ownership/Heritable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ contract Heritable is Ownable {
* before the heir can take ownership.
*/
constructor(uint256 _heartbeatTimeout) public {
setHeartbeatTimeout(_heartbeatTimeout);
heartbeatTimeout_ = _heartbeatTimeout;
}

function setHeir(address _newHeir) public onlyOwner {
Expand Down Expand Up @@ -113,13 +113,6 @@ contract Heritable is Ownable {
timeOfDeath_ = 0;
}

function setHeartbeatTimeout(uint256 _newHeartbeatTimeout)
internal onlyOwner
{
require(ownerLives());
heartbeatTimeout_ = _newHeartbeatTimeout;
}

function ownerLives() internal view returns (bool) {
return timeOfDeath_ == 0;
}
Expand Down