1.0.0 • Published 8 months ago

investor-dao v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Fixed-Term-Interest-Account

Testing the contract

Prerequisites: See https://hardhat.org/tutorial/setting-up-the-environment.html

Commands:

  • npm install - Install NPM packages
  • npx hardhat compile - Compile the contract
  • npx 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 ethereumjs-account@3.0.0: 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 ethereumjs-block@2.2.2: New package name format for new versions: @ethereumjs/block. Please update.
npm WARN deprecated ethashjs@0.0.8: New package name format for new versions: @ethereumjs/ethash. Please update.
npm WARN deprecated ethereumjs-blockchain@4.0.4: 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