Skip to content
Prev Previous commit
Next Next commit
Added encapsulation to Heritable public variables.
  • Loading branch information
trejas committed Jan 21, 2018
commit 3598b57e63a4c5fe2e57548c3252617ccd718c0b
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,3 @@ build/

# lol macs
.DS_Store/

*.sublime-project
*.sublime-workspace
5 changes: 5 additions & 0 deletions contracts/ownership/Heritable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ contract Heritable is Ownable {
heir = newHeir;
}


/**
* @dev Use these getter functions to access the internal variables in
* an inherited contract.
*/
function getHeir() external view returns(address) {
return heir;
}
Expand Down