This repository is a provided following contracts:
Dependencies:
Documents:
NOTE For production use, make sure that code has been commented out #define IS_TEST, line 1, file community.hpp. It will not generate init data test action of smart contract.
cd community
eosio-cpp -abigen -I include -contract community -o community.wasm src/community.cpp
- Install eosio testing framework hydra and login into it:
npm i -g @klevoya/hydra
hydra login- Install yarn packages:
yarn install- Run test:
Run all unit test
yarn testRun test file:
yarn test createCommunity.test.tsWARING Because test need to send many request to hydra server, test timeout error may sometime happend. Make sure your network connection is stable to run this test.