- clone and cd into directory
- run
yarn
- run
yarn test
oryarn test:watch
command | description |
---|---|
claim | test claim, generate tokenURI for given id yarn claim 6434 |
coverage | check test coverage |
gas | compile and check estimated gas cost for deployment and functions |
gas:quick | check estimated gas without compiling |
test | compile and run js tests |
test:quick | run js tests without compiling |
test:watch | compile and run js tests while watching for test.js changes |
Note:
yarn test:watch
only watches test.js files for changes, any Contract.sol changes will require re-compiling, meaning you have to re-run the test script to compile the contract
- include
const { deployProxy, upgradeProxy } = require('@openzeppelin/truffle-upgrades');
in 2_deploy - first deploy in format:
await deployProxy(Crystals, [mana.address], { deployer });
- upgrade format:
await upgradeProxy('<proxy address>', Crystals, { deployer });
- Verify deploying wallet has over 2x estimated funds required