This is a sample project that shows a basic reentrancy attack Testnet.
To install the packages, run either the following in the root directory of your repository:
yarn install
OR
npm install
After setting up your tests, run:
yarn test
To set up your tests.
Make sure to fill in the credentials in the test files!
harbor = new Harbor({
userKey: "cFeJWnDwQFVTSF2AabM2W5",
projectKey: "fPMeKGPUfyBTCoq2omv3G4",
});
To run the protected-re-entrancy-solution.test.js
, make the changes on ProtectedBank
as per the documention's instruction and run:
npx hardhat compile