Skip to content

This is a pratical illustration of how Re-entrancy attacks works. I create a couple of smart contracts, GoodContract and BadContract to demonstrate this behaviour. BadContract will be able to drain all the ETH out from GoodContract. Also wrote tests to see how it works.

Notifications You must be signed in to change notification settings

Ekwugha/reentrancy-attack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Hardhat Project

This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.

Try running some of the following tasks:

npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.js

About

This is a pratical illustration of how Re-entrancy attacks works. I create a couple of smart contracts, GoodContract and BadContract to demonstrate this behaviour. BadContract will be able to drain all the ETH out from GoodContract. Also wrote tests to see how it works.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published