reduce warnings
This commit is contained in:
parent
be1117fc89
commit
8bf1a3dff3
|
@ -37,10 +37,12 @@ contract Factory is Controlled {
|
||||||
address kernel,
|
address kernel,
|
||||||
bytes infohash)
|
bytes infohash)
|
||||||
{
|
{
|
||||||
return (versionLog[index].blockNumber,
|
return (
|
||||||
versionLog[index].timestamp,
|
versionLog[index].blockNumber,
|
||||||
versionLog[index].kernel,
|
versionLog[index].timestamp,
|
||||||
versionLog[index].infohash);
|
versionLog[index].kernel,
|
||||||
|
versionLog[index].infohash
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _setKernel(address _kernel, bytes _infohash)
|
function _setKernel(address _kernel, bytes _infohash)
|
||||||
|
@ -51,7 +53,7 @@ contract Factory is Controlled {
|
||||||
versionLog.push(Version({blockNumber: block.number, timestamp: block.timestamp, kernel: _kernel, infohash: _infohash}));
|
versionLog.push(Version({blockNumber: block.number, timestamp: block.timestamp, kernel: _kernel, infohash: _infohash}));
|
||||||
latestUpdate = block.timestamp;
|
latestUpdate = block.timestamp;
|
||||||
latestKernel = _kernel;
|
latestKernel = _kernel;
|
||||||
NewKernel(_kernel, _infohash);
|
emit NewKernel(_kernel, _infohash);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue