Skip to content

Commit 0d4de2c

Browse files
committed
fix: update failing tests for HorizonStakingNotAuthorized (OZ_N-05)
1 parent 3bc0046 commit 0d4de2c

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

packages/horizon/test/staking/provision/deprovision.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ contract HorizonStakingDeprovisionTest is HorizonStakingTest {
7575
vm.startPrank(users.operator);
7676
bytes memory expectedError = abi.encodeWithSignature(
7777
"HorizonStakingNotAuthorized(address,address,address)",
78-
users.indexer,
78+
subgraphDataServiceAddress,
7979
users.operator,
80-
subgraphDataServiceAddress
80+
users.indexer
8181
);
8282
vm.expectRevert(expectedError);
8383
staking.deprovision(users.indexer, subgraphDataServiceAddress, 0);

packages/horizon/test/staking/provision/locked.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ contract HorizonStakingProvisionLockedTest is HorizonStakingTest {
6666
vm.startPrank(users.operator);
6767
bytes memory expectedError = abi.encodeWithSignature(
6868
"HorizonStakingNotAuthorized(address,address,address)",
69-
users.indexer,
69+
subgraphDataServiceAddress,
7070
users.operator,
71-
subgraphDataServiceAddress
71+
users.indexer
7272
);
7373
vm.expectRevert(expectedError);
7474
staking.provisionLocked(

packages/horizon/test/staking/provision/parameters.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ contract HorizonStakingProvisionParametersTest is HorizonStakingTest {
4242
vm.expectRevert(
4343
abi.encodeWithSignature(
4444
"HorizonStakingNotAuthorized(address,address,address)",
45-
users.indexer,
45+
subgraphDataServiceAddress,
4646
msg.sender,
47-
subgraphDataServiceAddress
47+
users.indexer
4848
)
4949
);
5050
staking.setProvisionParameters(users.indexer, subgraphDataServiceAddress, maxVerifierCut, thawingPeriod);

packages/horizon/test/staking/provision/provision.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ contract HorizonStakingProvisionTest is HorizonStakingTest {
102102
vm.startPrank(users.operator);
103103
bytes memory expectedError = abi.encodeWithSignature(
104104
"HorizonStakingNotAuthorized(address,address,address)",
105-
users.indexer,
105+
subgraphDataServiceAddress,
106106
users.operator,
107-
subgraphDataServiceAddress
107+
users.indexer,
108108
);
109109
vm.expectRevert(expectedError);
110110
staking.provision(users.indexer, subgraphDataServiceAddress, amount, maxVerifierCut, thawingPeriod);

packages/horizon/test/staking/provision/reprovision.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ contract HorizonStakingReprovisionTest is HorizonStakingTest {
8080
vm.startPrank(users.operator);
8181
bytes memory expectedError = abi.encodeWithSignature(
8282
"HorizonStakingNotAuthorized(address,address,address)",
83-
users.indexer,
83+
newDataService,
8484
users.operator,
85-
newDataService
85+
users.indexer
8686
);
8787
vm.expectRevert(expectedError);
8888
staking.reprovision(users.indexer, subgraphDataServiceAddress, newDataService, provisionAmount, 0);

packages/horizon/test/staking/provision/thaw.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ contract HorizonStakingThawTest is HorizonStakingTest {
4949
vm.startPrank(users.operator);
5050
bytes memory expectedError = abi.encodeWithSignature(
5151
"HorizonStakingNotAuthorized(address,address,address)",
52-
users.indexer,
52+
subgraphDataServiceAddress,
5353
users.operator,
54-
subgraphDataServiceAddress
54+
users.indexer
5555
);
5656
vm.expectRevert(expectedError);
5757
staking.thaw(users.indexer, subgraphDataServiceAddress, amount);

0 commit comments

Comments
 (0)