Changed name to function, and added view to Factory

This commit is contained in:
Richard Ramos 2018-03-13 13:52:44 -04:00
parent 213e76d3a5
commit 5466aeed49
1 changed files with 12 additions and 0 deletions

View File

@ -31,6 +31,18 @@ contract Factory is Controlled {
_setKernel(_kernel, _infohash);
}
function getVersion(uint256 index) public view
returns(uint256 blockNumber,
uint256 timestamp,
address kernel,
bytes infohash)
{
return (versionLog[index].blockNumber,
versionLog[index].timestamp,
versionLog[index].kernel,
versionLog[index].infohash);
}
function _setKernel(address _kernel, bytes _infohash)
internal
{