Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 885 Bytes

README.md

File metadata and controls

16 lines (9 loc) · 885 Bytes

Parity Hack

Let's re-create the parity wallet hack by forking Ethereum before the hacker took the funds.

Setup

Create a .env file with a MAINNET_URL set to an alchemy mainnet URL.

Execution

Take a look at the tests in test/test.js. You'll want to complete the two TODOs:

  1. For the first TODO, replicate taking control of the logic contract (tx 0x9dbf03...)
  2. For the second TODO, replicate withdrawing the funds (tx 0xeef10f...)

Once you have completed these two TODOs you should be able to run the tests (npx hardhat test) and see all three test cases passing.