Closed stefek99 closed 6 years ago
Returns don't have to be explicit.
Syntactic sugar of Solidity.
In my opinion, can cause more harm than good.
Explicit return is better.
I'm a huge fan of keeping the code as small as possible, so when a return is not needed, it seems good not to use it.
modifier onlyOwner{ require(owner == msg.sender); _; }
https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/ownership/Ownable.sol
I really enjoy the concise code 👍
function valuationAndCutOff() public view returns (uint valuation, uint virtualValuation, uint currentCutOffBidID, uint currentCutOffBidmaxValuation, uint currentCutOffBidContrib) {
Where is the return statement in the code?
Is it intentional to have the function that
returns
and then nothing...HMMM...
https://github.com/kleros/openiico-contract/blob/master/contracts/IICO.sol#L323-L346