Let's re-create the parity wallet hack by forking Ethereum before the hacker took the funds.
Create a .env
file with a MAINNET_URL
set to an alchemy mainnet URL.
Take a look at the tests in test/test.js
. You'll want to complete the two TODOs:
- For the first TODO, replicate taking control of the logic contract (tx 0x9dbf03...)
- 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.