Skip to content

Commit

Permalink
Merge pull request #1 from corddry/master
Browse files Browse the repository at this point in the history
Correct test timestamp warping
  • Loading branch information
FortisFortuna authored Sep 19, 2022
2 parents dabcde9 + 22a3c01 commit 318456a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/frxETH_sfrxETH_combo.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ contract xERC4626Test is Test {


function setUp() public {
vm.warp(0); // Fuzz fails without!!

// Set the withdrawal credentials (must be done at compile time due to .env loading)
WITHDRAWAL_CREDENTIALS = vm.envBytes("VALIDATOR_TEST_WITHDRAWAL_CREDENTIALS0");

Expand All @@ -54,7 +56,6 @@ contract xERC4626Test is Test {
owner = payable(vm.addr(ownerPrivateKey));
spender = payable(vm.addr(spenderPrivateKey));

vm.warp(0); // Fuzz fails without!!
//emit log_timestamp(block.timestamp);

}
Expand Down

0 comments on commit 318456a

Please sign in to comment.