Files
openzeppelin-contracts/contracts/mocks/MessageHelper.sol
2018-01-17 11:21:25 -03:00

24 lines
453 B
Solidity

pragma solidity ^0.4.11;
contract MessageHelper {
event Show(bytes32 b32, uint256 number, string text);
function showMessage( bytes32 message, uint256 number, string text ) public returns (bool) {
Show(message, number, text);
return true;
}
function fail() public {
require(false);
}
function call(address to, bytes data) public returns (bool) {
if (to.call(data))
return true;
else
return false;
}
}