Skip to content

Commit

Permalink
reset blockchain state before time manipulation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mokita-J committed Sep 5, 2024
1 parent 30aeea9 commit f510e61
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ describe('attack time_manipulation/timed_crowdsale.sol', function () {


it('exploit time manipulation vulnerability', async function () {
await hre.network.provider.send("hardhat_reset");
const {victim} = await loadFixture(deployContracts);

const saleEndTimestamp = 1546300800;
Expand Down

0 comments on commit f510e61

Please sign in to comment.