Created
June 20, 2016 16:51
-
-
Save timothyylim/6ba07316df11635775374a91aa1deb1c 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
var _agent = secondary ; | |
var _seller = tertiary ; | |
var escrowContract = web3.eth.contract([{"constant":false,"inputs":[],"name":"release","outputs":[],"type":"function"},{"constant":false,"inputs":[],"name":"cancel","outputs":[],"type":"function"},{"inputs":[{"name":"_agent","type":"address"},{"name":"_seller","type":"address"}],"type":"constructor"}]); | |
var escrow = escrowContract.new( | |
_agent, | |
_seller, | |
{ | |
from: web3.eth.accounts[0], | |
data: '6060604052604051604080610258833981016040528080519060200190919080519060200190919050505b33600060006101000a81548173ffffffffffffffffffffffffffffffffffffffff0219169083021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff0219169083021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908302179055505b505061019c806100bc6000396000f360606040526000357c01000000000000000000000000000000000000000000000000000000009004806386d1a69f14610044578063ea8a1af01461005357610042565b005b6100516004805050610062565b005b61006060048050506100ff565b005b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156100f757600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16ff6100fc565b610002565b5b565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561019457600060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16ff610199565b610002565b5b56', | |
gas: 3000000 | |
}, function(e, contract){ | |
console.log(e, contract); | |
if (typeof contract.address != 'undefined') { | |
console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment