Last active
December 9, 2017 05:33
-
-
Save axic/dd596465ee798629b15a0a6ec5bdf985 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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