Skip to content

Commit

Permalink
Run base Setup if no snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2o17 committed Jan 12, 2024
1 parent 940f171 commit 355b4ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FraxTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ abstract contract FraxTest is VmHelper, Test {
function()[] internal setupFunctions;

modifier useMultipleSetupFunctions() {
require(snapShotIds.length > 0, "No Snapshots to load");
if (snapShotIds.length == 0) _;
for (uint256 i = 0; i < snapShotIds.length; i++) {
if (!vm.revertTo(snapShotIds[i])) {
revert VmDidNotRevert(snapShotIds[i]);
Expand Down

0 comments on commit 355b4ad

Please sign in to comment.