/Reentrancy-attack-Smart-Contract-Security

Practical example of the Reentrancy attack and how to protect against it

Primary LanguageJavaScript

Smart Contract Security - Reentrancy attack

Practical example of the reentracy vulnerability and how to protect against it

Technology Stack & Dependencies

  • Solidity (Writing Smart Contract)
  • Javascript (Game interaction)
  • NodeJS To create hardhat project and install dependencis using npm
  • Ethers.js Interact with contracts using JavaScript

1. Clone/Download the Repository

2. Install Dependencies:

$ npm install

3. Compile Smart Contracts

$ npx hardhat compile

4. Test and Perform attack

$ npx hardhat test