Contactable.sol 551 B

123456789101112131415161718192021
  1. pragma solidity ^0.4.11;
  2. import './Ownable.sol';
  3. /**
  4. * @title Contactable token
  5. * @dev Basic version of a contactable contract, allowing the owner to provide a string with their
  6. * contact information.
  7. */
  8. contract Contactable is Ownable{
  9. string public contactInformation;
  10. /**
  11. * @dev Allows the owner to set a string with their contact information.
  12. * @param info The contact information to attach to the contract.
  13. */
  14. function setContactInformation(string info) onlyOwner{
  15. contactInformation = info;
  16. }
  17. }