MessageHelper.sol 519 B

12345678910111213141516171819202122232425
  1. pragma solidity ^0.4.21;
  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. emit 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. // solium-disable-next-line security/no-low-level-calls
  13. if (to.call(data))
  14. return true;
  15. else
  16. return false;
  17. }
  18. }