A simple blind auction contract inspired by the code example in official Solidity documentation guide written with little adjustments and full unit tests via the Truffle Suite framework.
It is assumed you have Nodejs LTS installed and knows how to use package managers e.g NPM, PNPM, Yarn etc. To test the contract follow the steps below:
- Install the dependencies from the
package.json
file. - Run
truffle develop
to start the development console from your terminal. - Then run
test
once the truffle development console is already running. This starts the script to start unit tests.
For more information visit: