Commit e5960465 by zava Committed by Alejandro Santander

owner can't be set as heir

parent 5716492e
......@@ -45,6 +45,7 @@ contract Inheritable is Ownable {
}
function setHeir(address newHeir) public onlyOwner {
require(newHeir != owner);
heartbeat();
HeirChanged(owner, newHeir);
heir = newHeir;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment