MessageHelper.sol 453 B

1234567891011121314151617181920212223
  1. pragma solidity ^0.4.11;
  2. contract MessageHelper {
  3. event Show(bytes32 b32, uint256 number, string text);
  4. function showMessage( bytes32 message, uint256 number, string text ) public returns (bool) {
  5. Show(message, number, text);
  6. return true;
  7. }
  8. function fail() public {
  9. require(false);
  10. }
  11. function call(address to, bytes data) public returns (bool) {
  12. if (to.call(data))
  13. return true;
  14. else
  15. return false;
  16. }
  17. }