Skip to content

Commit

Permalink
fix: flipped a boolean by accident
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaoticWalrus committed Nov 14, 2023
1 parent 2209d9f commit 1da31c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/EigenLayerTestHelper.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ contract EigenLayerTestHelper is EigenLayerDeployer {
return updatedState;
}

function _strategyInStakerList(Staker memory staker, IStrategy strategy) internal view returns (bool) {
function _strategyInStakerList(Staker memory staker, IStrategy strategy) internal pure returns (bool) {
for (uint256 i = 0; i < staker.strategies.length; ++i) {
if (staker.strategies[i] == strategy) {
return true;
Expand All @@ -39,7 +39,7 @@ contract EigenLayerTestHelper is EigenLayerDeployer {
return false;
}

function _stakerShares(Staker memory staker, IStrategy strategy) internal view returns (uint256) {
function _stakerShares(Staker memory staker, IStrategy strategy) internal pure returns (uint256) {
for (uint256 i = 0; i < staker.strategies.length; ++i) {
if (staker.strategies[i] == strategy) {
return staker.shares[i];
Expand Down Expand Up @@ -94,7 +94,7 @@ contract EigenLayerTestHelper is EigenLayerDeployer {

// whitelist the strategy for deposit, in the case where it wasn't before
{
if (strategyManager.strategyIsWhitelistedForDeposit(stratToDepositTo)) {
if (!strategyManager.strategyIsWhitelistedForDeposit(stratToDepositTo)) {
IStrategy[] memory _strategy = new IStrategy[](1);
_strategy[0] = stratToDepositTo;
cheats.prank(strategyManager.strategyWhitelister());
Expand Down Expand Up @@ -188,7 +188,7 @@ contract EigenLayerTestHelper is EigenLayerDeployer {

// whitelist the strategy for deposit, in the case where it wasn't before
{
if (strategyManager.strategyIsWhitelistedForDeposit(stratToDepositTo)) {
if (!strategyManager.strategyIsWhitelistedForDeposit(stratToDepositTo)) {
IStrategy[] memory _strategy = new IStrategy[](1);
_strategy[0] = stratToDepositTo;
cheats.prank(strategyManager.strategyWhitelister());
Expand Down

0 comments on commit 1da31c7

Please sign in to comment.