This repository is an example of writing a contract, compiling with Waffle, and testing with mocha/chai
Just edit the contract in contracts
folder
To use this repo - clone and run npm ci
to install dependencies before running the build or test scripts.
Settings for waffle are in waffle.json
- to compile simply run npm run build
.
Tests are in the tests folder - to execute just run npm run test
If you find this repo useful, please consider helping add to this repository with more tests/tricks/helpers/etc.
To dos:
- Add example of using the contract output in a web interface
- Add ERC721 example