Skip to content

Commit

Permalink
✅ change mock_getMaxMarketSize to take perpsMarketProxy instead of MA…
Browse files Browse the repository at this point in the history
…RKET_CONFIGURATION_MODULE
  • Loading branch information
cmontecoding committed Oct 14, 2024
1 parent ea71563 commit 884d116
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/ConditionalOrder.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ contract Conditions is ConditionalOrderTest {
assertTrue(isOpen);

mock_getMaxMarketSize(
MARKET_CONFIGURATION_MODULE, SETH_PERPS_MARKET_ID, 0
address(perpsMarketProxy), SETH_PERPS_MARKET_ID, 0
);

isOpen = engine.isMarketOpen(SETH_PERPS_MARKET_ID);
Expand Down
4 changes: 2 additions & 2 deletions test/utils/mocks/SynthetixMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ contract SynthetixMock is Test {
}

function mock_getMaxMarketSize(
address marketConfigurationModule,
address perpsMarketProxy,
uint128 marketId,
uint256 maxMarketSize
) public {
vm.mockCall(
marketConfigurationModule,
perpsMarketProxy,
abi.encodeWithSelector(
IPerpsMarketProxy.getMaxMarketSize.selector, marketId
),
Expand Down

0 comments on commit 884d116

Please sign in to comment.