Skip to content

Instantly share code, notes, and snippets.

@jw122
Created July 11, 2017 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jw122/c561c8059ca239df6623db9080805634 to your computer and use it in GitHub Desktop.
Save jw122/c561c8059ca239df6623db9080805634 to your computer and use it in GitHub Desktop.
Solidity contract for members in an escrow payment
pragma solidity ^0.4.4;
contract Purchase {
address public buyer;
address public seller;
address public arbiter;
// uint public balance;
// constructor
function Purchase(address _seller, address _arbiter){
buyer = msg.sender;
// balance = msg.value;
seller = _seller;
arbiter = _arbiter;
}
function getArbiter() constant returns (address) {
return arbiter;
}
function getSeller() constant returns(address) {
return seller;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment