Skip to content

Commit

Permalink
fix: Get modifier from TestHelpers
Browse files Browse the repository at this point in the history
  • Loading branch information
stonehengeLR committed Jul 4, 2024
1 parent ce33daf commit 591cf53
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions test/foundry/BlastYield.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {IOwnableTwoSteps} from "../../contracts/interfaces/IOwnableTwoSteps.sol"
import {OwnableTwoSteps} from "../../contracts/OwnableTwoSteps.sol";
import {BlastYield} from "../../contracts/BlastYield.sol";
import {Test} from "../../lib/forge-std/src/Test.sol";
import {TestHelpers} from "./utils/TestHelpers.sol";
import {YieldMode as IBlast__YieldMode, GasMode as IBlast__GasMode} from "../../contracts/interfaces/IBlast.sol";
import {YieldMode as IERC20Rebasing__YieldMode} from "../../contracts/interfaces/IERC20Rebasing.sol";

Expand All @@ -29,7 +30,7 @@ contract BlastYieldOwnableTwoSteps is BlastYield, OwnableTwoSteps {
}
}

contract BlastYieldOwnableTwoSteps_Test is Test {
contract BlastYieldOwnableTwoSteps_Test is Test, TestHelpers {

This comment has been minimized.

Copy link
@0xhiroshi

0xhiroshi Jul 4, 2024

Collaborator

TestHelpers inherits from Test

This comment has been minimized.

Copy link
@stonehengeLR

stonehengeLR Jul 4, 2024

Author Contributor
MockBlastWETH private weth;
MockBlastERC20 private usdb;
MockBlastYield private mockBlastYield;
Expand Down Expand Up @@ -87,10 +88,4 @@ contract BlastYieldOwnableTwoSteps_Test is Test {
vm.expectRevert(IOwnableTwoSteps.NotOwner.selector);
blastYieldOwnableTwoSteps.claim(TREASURY, TREASURY);
}

modifier asPrankedUser(address user) {
vm.startPrank(user);
_;
vm.stopPrank();
}
}

0 comments on commit 591cf53

Please sign in to comment.