//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.24; contract PichuCastle { uint public timeout = 60; uint private halfway = timeout / 2; string private name = "pokemon"; function getHalfway() external view returns (uint) { return halfway; } function getName() external view returns (string) { return name; } } contract PichuMuffin { uint private likes = 0; address private wallet; constructor (address _wallet) public { wallet = _wallet; } function tip() public payable { require(msg.value >= 1); wallet.transfer(msg.value); } function getBalance() public view returns (uint) { return wallet.balance; } function like() public { likes = likes + 1; } function getFans() public view returns (uint) { return likes; } function isBestMuffin() public pure returns (bool) { return true; } function lesserThan(uint a, uint b) public pure returns (bool) { return a <= b; } function hasLotsOfFans() public view returns (bool){ return lesserThan(1000, likes); } function notZero(uint number) internal pure returns (bool) { return number != 0; } function isRecommended() public view returns (bool) { return notZero(getFans()) && isBestMuffin(); } }
0.4.24