Skip to content

Commit

Permalink
fix: apply consistent mapping order inside HorizonStakingShared.t.sol…
Browse files Browse the repository at this point in the history
… (OZ_N-05)
  • Loading branch information
MoonBoi9001 committed Oct 3, 2024
1 parent aad3171 commit 49de3b5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ abstract contract HorizonStakingSharedTest is GraphBaseTest {

// before
bool beforeOperatorAllowed = _getStorage_OperatorAuth(msgSender, operator, verifier, legacy);
bool beforeOperatorAllowedGetter = staking.isAuthorized(operator, msgSender, verifier);
bool beforeOperatorAllowedGetter = staking.isAuthorized(msgSender, operator, verifier);
assertEq(beforeOperatorAllowed, beforeOperatorAllowedGetter);

// setOperator
Expand All @@ -769,7 +769,7 @@ abstract contract HorizonStakingSharedTest is GraphBaseTest {

// after
bool afterOperatorAllowed = _getStorage_OperatorAuth(msgSender, operator, verifier, legacy);
bool afterOperatorAllowedGetter = staking.isAuthorized(operator, msgSender, verifier);
bool afterOperatorAllowedGetter = staking.isAuthorized(msgSender, operator, verifier);
assertEq(afterOperatorAllowed, afterOperatorAllowedGetter);

// assert
Expand Down

0 comments on commit 49de3b5

Please sign in to comment.