Skip to content

Commit

Permalink
fix: apply consistent mapping order ProvisionManagerNotAuthorized (OZ…
Browse files Browse the repository at this point in the history
…_N-05)
  • Loading branch information
MoonBoi9001 committed Oct 3, 2024
1 parent 0256641 commit 6265da0
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ contract SubgraphServiceAllocationStartTest is SubgraphServiceTest {
bytes memory data = _generateData(tokens);
vm.expectRevert(abi.encodeWithSelector(
ProvisionManager.ProvisionManagerNotAuthorized.selector,
users.operator,
users.indexer
));
users.indexer,
users.operator
)
);
subgraphService.startService(users.indexer, data);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ contract SubgraphServiceAllocationStopTest is SubgraphServiceTest {
bytes memory data = abi.encode(allocationID);
vm.expectRevert(
abi.encodeWithSelector(
ProvisionManager.ProvisionManagerNotAuthorized.selector,
users.operator,
users.indexer
ProvisionManager.ProvisionManagerNotAuthorized.selector,
users.indexer,
users.operator
)
);
subgraphService.stopService(users.indexer, data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ contract SubgraphServiceRegisterTest is SubgraphServiceTest {
resetPrank(users.operator);
vm.expectRevert(
abi.encodeWithSelector(
ProvisionManager.ProvisionManagerNotAuthorized.selector,
users.operator,
users.indexer
ProvisionManager.ProvisionManagerNotAuthorized.selector,
users.indexer,
users.operator
)
);
subgraphService.collect(users.indexer, paymentType, data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ contract SubgraphServiceProviderRegisterTest is SubgraphServiceTest {
resetPrank(users.operator);
vm.expectRevert(abi.encodeWithSelector(
ProvisionManager.ProvisionManagerNotAuthorized.selector,
users.operator,
users.indexer
));
users.indexer,
users.operator
)
);
bytes memory data = abi.encode("url", "geoHash", users.rewardsDestination);
subgraphService.register(users.indexer, data);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ contract SubgraphServiceProvisionAcceptTest is SubgraphServiceTest {
resetPrank(users.operator);
vm.expectRevert(abi.encodeWithSelector(
ProvisionManager.ProvisionManagerNotAuthorized.selector,
users.operator,
users.indexer
));
users.indexer,
users.operator
)
);
subgraphService.acceptProvision(users.indexer, "");
}

Expand Down

0 comments on commit 6265da0

Please sign in to comment.