investor-dao
v1.0.0
Published
Fixed-Term-Interest-Account (Investor-DAO) contracts
Downloads
3
Maintainers
Readme
Fixed-Term-Interest-Account
Testing the contract
Prerequisites: See https://hardhat.org/tutorial/setting-up-the-environment.html
Commands:
npm install
- Install NPM packagesnpx hardhat compile
- Compile the contractnpx hardhat test
- Run mocha tests in/tests/
folder
Troubleshooting:
Issue: When running npm install
you get an error like this:
npm install
npm WARN deprecated [email protected]: Please use Util.Account class found on package ethereumjs-util@^7.0.6 https://github.com/ethereumjs/ethereumjs-util/releases/tag/v7.0.6
npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/block. Please update.
npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/ethash. Please update.
npm WARN deprecated [email protected]: New package name format for new versions: @ethereumjs/blockchain. Please update.
npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! The "from" argument must be of type string. Received undefined
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Will\AppData\Local\npm-cache\_logs\2021-06-21T17_30_25_432Z-debug.log
Fix: Delete the node_modules
folder, then re-run npm install