SHARE
TWEET

Untitled

a guest Jan 12th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct Owner {
  2.         address owner;
  3.         string ownerName;
  4.         string petName;
  5.         uint ownerprice;
  6.         string petInfo;
  7.         string petselltext;
  8.         uint ownerwallet;
  9.     }
  10.  
  11.  
  12.     mapping (address => Owner) Owners;
  13.     address[] public OwnerAddresses;
  14.  
  15. struct PetSitter {
  16.         address petsitter;
  17.         string petSittername;
  18.         string petSitterInfo;
  19.         string educationConfirm;
  20.         string petsharetext;
  21.         uint sitterprice;
  22.         uint petsitterwallet;
  23.     }
  24.  
  25.     mapping (address => PetSitter) PetSitters;
  26.     address[] public PetSitterAddresses;
  27.  
  28.  
  29. function PetSitterShareText(string _petsittertext, uint _sitterprice) public view returns(string) {
  30.       //  var PetSitter = PetSitters[_sitter];
  31.        PetSitters[msg.sender].petsharetext = _petsittertext;
  32.        PetSitters[msg.sender].sitterprice = _sitterprice;
  33.  
  34.     }
  35.  
  36.  
  37.     function OwnerShareText(address _OWNER, string _ownersharetext, uint _ownerprice) OwnerModifyInfo(_OWNER) public view  returns(string){
  38.         Owners[msg.sender].petselltext = _ownersharetext;
  39.         Owners[msg.sender].ownerprice = _ownerprice;
  40.  
  41.     }
  42.    
  43. function setMyNumber(uint _myNumber) public {
  44.   favoriteNumber[msg.sender] = _myNumber;
  45.  
  46. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top