Skip to content

Instantly share code, notes, and snippets.

@axic
Last active December 9, 2017 05:33
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 axic/dd596465ee798629b15a0a6ec5bdf985 to your computer and use it in GitHub Desktop.
Save axic/dd596465ee798629b15a0a6ec5bdf985 to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.19;
interface ShenzhenKitties {
function transferKittie(address to, string name) external;
function kittieOwner(string name) external view returns (address);
}
contract KittieEscrow {
ShenzhenKitties constant kittieRegistry = ShenzhenKitties(0x59f710ab6e0D4bafc20B3B86dC1bcC196d5ae16F);
address public beneficiary;
string public kittie;
uint public price;
function KittieEscrow(string _name, uint _price) public {
beneficiary = msg.sender;
kittie = _name;
price = _price;
}
function pay() payable external {
// Code goes here...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment