Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. pragma solidity ^0.4.15;
  2. contract MyContract {
  3.  
  4. bytes32 public custName;
  5. bytes32 public custLoc;
  6. address public docAddress = this;
  7.  
  8. function MyContract () {
  9.  
  10. custName = "0xDEFAULT";
  11. custLoc = "0xDEFAULT";
  12.  
  13. }
  14.  
  15. event LogNewCust (address _address, bytes32 _custName, bytes32 _custLoc);
  16.  
  17. function AssignAttributes (bytes32 _custName, bytes32 _custLoc)
  18. returns (bool isSuccess) {
  19.  
  20. custName = _custName;
  21. custLoc = _custLoc;
  22.  
  23. LogNewCust(docAddress,custName,custLoc);
  24.  
  25. return true;
  26.  
  27. }
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement