mirror of openzeppelin-contracts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|