Make sure you have atleast one package manager
- npm - install npm
- yarn - install yarn
- pnpm - install pnpm
Make sure you are using nodejs version equal greater than ^20.0.0
git clone https://github.com/RizeLabs/Sample-Hardhat-Template.git
cd Sample-Hardhat-Template/
npm install
- Encrypted token transfer
npx hardhat run scripts/transferErc20.ts --network encifher
- Encrypting voting over proposal
npx hardhat run scripts/encryptedVoting.ts --network encifher
- Make sure to use node version greater or equal to
20.0.0
- In case if you are receiving error like this, Then make sure you are using
fhevm
version0.5.1
i.e[email protected]