ChainSecurity / constantinople-reentrancy

Vulnerable code example including tests for Constantinople Reentrancy

Home Page:https://medium.com/@chain_security/ace4088297d9

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Demonstration of new Constantinople Reentrancy

Install

  • Install dependencies: npm i
  • Install ganache@beta: npm i -g ganache-cli@beta (at least ganache-cli@6.3.0-beta.0)

To test the attack

  • Run ganache: ganache-cli --hardfork=constantinople
  • Run tests: truffle test

To compare with the current state in byzantium

  • Run ganache: ganache-cli --hardfork=byzantium
  • Run (failing) tests: truffle test

Contact

In case of questions or comments, please contact contact@chainsecurity.com

About

Vulnerable code example including tests for Constantinople Reentrancy

https://medium.com/@chain_security/ace4088297d9


Languages

Language:JavaScript 61.8%Language:Solidity 38.2%