项目作者: crypedit

项目描述 :
a Purchase contract for homework
高级语言: JavaScript
项目地址: git://github.com/crypedit/purchase.git
创建时间: 2017-08-17T03:11:05Z
项目社区:https://github.com/crypedit/purchase

开源协议:

下载


Purchase

  • 仅卖家新建合约
  • 仅卖家在合约状态为新建状态时才能终止合约
  • 仅买家确认购买
  • 仅买家确认收货,合约才算完成

部署到 testnet (ropsten)

参考truffle.js中的注释的内容,部署该智能合约到ropstenhttp://45.76.197.72:8545上。

  1. $ cp your_keystore_file ./keystore
  2. $ printf "your_passphase" > ./pass
  3. $ truffle deploy --network ropsten

注意

你的账户中部署时必须有点ether,那么如何获取testnet上的ehter呢?