Skip to content

Commit

Permalink
fix: apply consistent mapping order HorizonStakingNotAuthorized (OZ_N…
Browse files Browse the repository at this point in the history
…-05)
  • Loading branch information
MoonBoi9001 committed Oct 3, 2024
1 parent ac36efb commit 0256641
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/horizon/test/staking/provision/deprovision.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ contract HorizonStakingDeprovisionTest is HorizonStakingTest {
vm.startPrank(users.operator);
bytes memory expectedError = abi.encodeWithSignature(
"HorizonStakingNotAuthorized(address,address,address)",
users.operator,
users.indexer,
users.operator,
subgraphDataServiceAddress
);
vm.expectRevert(expectedError);
Expand Down
2 changes: 1 addition & 1 deletion packages/horizon/test/staking/provision/locked.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ contract HorizonStakingProvisionLockedTest is HorizonStakingTest {
vm.startPrank(users.operator);
bytes memory expectedError = abi.encodeWithSignature(
"HorizonStakingNotAuthorized(address,address,address)",
users.operator,
users.indexer,
users.operator,
subgraphDataServiceAddress
);
vm.expectRevert(expectedError);
Expand Down
2 changes: 1 addition & 1 deletion packages/horizon/test/staking/provision/parameters.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ contract HorizonStakingProvisionParametersTest is HorizonStakingTest {
vm.expectRevert(
abi.encodeWithSignature(
"HorizonStakingNotAuthorized(address,address,address)",
msg.sender,
users.indexer,
msg.sender,
subgraphDataServiceAddress
)
);
Expand Down
2 changes: 1 addition & 1 deletion packages/horizon/test/staking/provision/provision.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ contract HorizonStakingProvisionTest is HorizonStakingTest {
vm.startPrank(users.operator);
bytes memory expectedError = abi.encodeWithSignature(
"HorizonStakingNotAuthorized(address,address,address)",
users.operator,
users.indexer,
users.operator,
subgraphDataServiceAddress
);
vm.expectRevert(expectedError);
Expand Down
2 changes: 1 addition & 1 deletion packages/horizon/test/staking/provision/reprovision.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ contract HorizonStakingReprovisionTest is HorizonStakingTest {
vm.startPrank(users.operator);
bytes memory expectedError = abi.encodeWithSignature(
"HorizonStakingNotAuthorized(address,address,address)",
users.operator,
users.indexer,
users.operator,
newDataService
);
vm.expectRevert(expectedError);
Expand Down
2 changes: 1 addition & 1 deletion packages/horizon/test/staking/provision/thaw.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ contract HorizonStakingThawTest is HorizonStakingTest {
vm.startPrank(users.operator);
bytes memory expectedError = abi.encodeWithSignature(
"HorizonStakingNotAuthorized(address,address,address)",
users.operator,
users.indexer,
users.operator,
subgraphDataServiceAddress
);
vm.expectRevert(expectedError);
Expand Down

0 comments on commit 0256641

Please sign in to comment.