Sibbay Health Token
注意配置钱包地址和fundAccount地址 最简单的方法:详见 tools/ToolREADME.MD中的deploy_contract
注意在2_deploy.js中配置fund地址
truffle compile
truffle migration
$ truffle compile
$ npm install
$ truffle test
- 准备 python3 环境
- 安装 python 包
pip install -r test/requirements.txt
- test/template_test.py 是一个单元测试的示例文件,不能直接运行
test 目录下其他的 *_test.py 是智能合约的单元测试文件可以通过如下方法运行
python test/<file_name>.py
智能合约的操作都是需要挖矿确认的,所以需要比较久的时间
- 可以通过如下命令运行所有单元测试
注意,需要配置setting.py文件和config.py文件
bash test.sh