@@ -252,7 +252,7 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
252252 bytes [] memory updateData = createMockUpdateData (initialPriceFeeds);
253253
254254 vm.prank (pusher);
255- scheduler.updatePriceFeeds (subscriptionId, updateData, initialPriceIds );
255+ scheduler.updatePriceFeeds (subscriptionId, updateData);
256256
257257 // Verify initial state: All 3 feeds should be readable
258258 assertTrue (
@@ -830,7 +830,7 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
830830 emit PricesUpdated (subscriptionId, publishTime1);
831831 vm.prank (pusher);
832832
833- scheduler.updatePriceFeeds (subscriptionId, updateData1, priceIds );
833+ scheduler.updatePriceFeeds (subscriptionId, updateData1);
834834
835835 // Verify first update
836836 (, SchedulerState.SubscriptionStatus memory status1 ) = scheduler
@@ -881,7 +881,7 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
881881 emit PricesUpdated (subscriptionId, publishTime2);
882882 vm.prank (pusher);
883883
884- scheduler.updatePriceFeeds (subscriptionId, updateData2, priceIds );
884+ scheduler.updatePriceFeeds (subscriptionId, updateData2);
885885
886886 // Verify second update
887887 (, SchedulerState.SubscriptionStatus memory status2 ) = scheduler
@@ -948,7 +948,7 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
948948
949949 // Perform update
950950 vm.prank (pusher);
951- scheduler.updatePriceFeeds (subscriptionId, updateData, params.priceIds );
951+ scheduler.updatePriceFeeds (subscriptionId, updateData);
952952
953953 // Get state after
954954 (, SchedulerState.SubscriptionStatus memory statusAfter ) = scheduler
@@ -1050,7 +1050,7 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
10501050 // Expect revert due to insufficient balance for total fee
10511051 vm.expectRevert (abi.encodeWithSelector (InsufficientBalance.selector ));
10521052 vm.prank (pusher);
1053- scheduler.updatePriceFeeds (subscriptionId, updateData, priceIds );
1053+ scheduler.updatePriceFeeds (subscriptionId, updateData);
10541054 }
10551055
10561056 function testUpdatePriceFeedsRevertsOnHeartbeatUpdateConditionNotMet ()
@@ -1073,15 +1073,14 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
10731073 uint256 fundAmount = 1 ether ;
10741074 scheduler.addFunds {value: fundAmount}(subscriptionId);
10751075 // First update to set initial timestamp
1076- bytes32 [] memory priceIds = createPriceIds ();
10771076 uint64 publishTime1 = SafeCast.toUint64 (block .timestamp );
10781077 PythStructs.PriceFeed[] memory priceFeeds1;
10791078 uint64 [] memory slots1;
10801079 (priceFeeds1, slots1) = createMockPriceFeedsWithSlots (publishTime1, 2 );
10811080 mockParsePriceFeedUpdatesWithSlots (pyth, priceFeeds1, slots1);
10821081 bytes [] memory updateData1 = createMockUpdateData (priceFeeds1);
10831082 vm.prank (pusher);
1084- scheduler.updatePriceFeeds (subscriptionId, updateData1, priceIds );
1083+ scheduler.updatePriceFeeds (subscriptionId, updateData1);
10851084
10861085 // Prepare second update within heartbeat interval
10871086 vm.warp (block .timestamp + 30 ); // Advance time by 30 seconds (less than 60)
@@ -1097,7 +1096,7 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
10971096 abi.encodeWithSelector (UpdateConditionsNotMet.selector )
10981097 );
10991098 vm.prank (pusher);
1100- scheduler.updatePriceFeeds (subscriptionId, updateData2, priceIds );
1099+ scheduler.updatePriceFeeds (subscriptionId, updateData2);
11011100 }
11021101
11031102 function testUpdatePriceFeedsRevertsOnDeviationUpdateConditionNotMet ()
@@ -1121,15 +1120,14 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
11211120 scheduler.addFunds {value: fundAmount}(subscriptionId);
11221121
11231122 // First update to set initial price
1124- bytes32 [] memory priceIds = createPriceIds ();
11251123 uint64 publishTime1 = SafeCast.toUint64 (block .timestamp );
11261124 PythStructs.PriceFeed[] memory priceFeeds1;
11271125 uint64 [] memory slots;
11281126 (priceFeeds1, slots) = createMockPriceFeedsWithSlots (publishTime1, 2 );
11291127 mockParsePriceFeedUpdatesWithSlots (pyth, priceFeeds1, slots);
11301128 bytes [] memory updateData1 = createMockUpdateData (priceFeeds1);
11311129 vm.prank (pusher);
1132- scheduler.updatePriceFeeds (subscriptionId, updateData1, priceIds );
1130+ scheduler.updatePriceFeeds (subscriptionId, updateData1);
11331131
11341132 // Prepare second update with price deviation less than threshold (e.g., 50 bps)
11351133 vm.warp (block .timestamp + 1000 ); // Advance time significantly (doesn't matter for deviation)
@@ -1160,7 +1158,7 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
11601158 abi.encodeWithSelector (UpdateConditionsNotMet.selector )
11611159 );
11621160 vm.prank (pusher);
1163- scheduler.updatePriceFeeds (subscriptionId, updateData2, priceIds );
1161+ scheduler.updatePriceFeeds (subscriptionId, updateData2);
11641162 }
11651163
11661164 function testUpdatePriceFeedsRevertsOnOlderTimestamp () public {
@@ -1173,7 +1171,6 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
11731171 scheduler.addFunds {value: fundAmount}(subscriptionId);
11741172
11751173 // First update to establish last updated timestamp
1176- bytes32 [] memory priceIds = createPriceIds ();
11771174 uint64 publishTime1 = SafeCast.toUint64 (block .timestamp );
11781175 PythStructs.PriceFeed[] memory priceFeeds1;
11791176 uint64 [] memory slots1;
@@ -1182,7 +1179,7 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
11821179 bytes [] memory updateData1 = createMockUpdateData (priceFeeds1);
11831180
11841181 vm.prank (pusher);
1185- scheduler.updatePriceFeeds (subscriptionId, updateData1, priceIds );
1182+ scheduler.updatePriceFeeds (subscriptionId, updateData1);
11861183
11871184 // Prepare second update with an older timestamp
11881185 uint64 publishTime2 = publishTime1 - 10 ; // Timestamp older than the first update
@@ -1204,7 +1201,7 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
12041201
12051202 // Attempt to update price feeds
12061203 vm.prank (pusher);
1207- scheduler.updatePriceFeeds (subscriptionId, updateData2, priceIds );
1204+ scheduler.updatePriceFeeds (subscriptionId, updateData2);
12081205 }
12091206
12101207 function testUpdatePriceFeedsRevertsOnMismatchedSlots () public {
@@ -1217,7 +1214,6 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
12171214 scheduler.addFunds {value: fundAmount}(subscriptionId);
12181215
12191216 // Create two price feeds with same timestamp but different slots
1220- bytes32 [] memory priceIds = createPriceIds (2 );
12211217 uint64 publishTime = SafeCast.toUint64 (block .timestamp );
12221218 PythStructs.PriceFeed[] memory priceFeeds = new PythStructs.PriceFeed [](
12231219 2
@@ -1239,7 +1235,7 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
12391235
12401236 // Attempt to update price feeds
12411237 vm.prank (pusher);
1242- scheduler.updatePriceFeeds (subscriptionId, updateData, priceIds );
1238+ scheduler.updatePriceFeeds (subscriptionId, updateData);
12431239 }
12441240
12451241 function testUpdateSubscriptionEnforcesMinimumBalance () public {
@@ -1425,7 +1421,7 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
14251421 bytes [] memory updateData = createMockUpdateData (priceFeeds);
14261422
14271423 vm.prank (pusher);
1428- scheduler.updatePriceFeeds (subscriptionId, updateData, priceIds );
1424+ scheduler.updatePriceFeeds (subscriptionId, updateData);
14291425
14301426 // Get all latest prices (empty priceIds array)
14311427 bytes32 [] memory emptyPriceIds = new bytes32 [](0 );
@@ -1467,7 +1463,7 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
14671463 bytes [] memory updateData = createMockUpdateData (priceFeeds);
14681464
14691465 vm.prank (pusher);
1470- scheduler.updatePriceFeeds (subscriptionId, updateData, priceIds );
1466+ scheduler.updatePriceFeeds (subscriptionId, updateData);
14711467
14721468 // Get only the first price feed
14731469 bytes32 [] memory selectedPriceIds = new bytes32 [](1 );
@@ -1520,10 +1516,9 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
15201516 (priceFeeds, slots) = createMockPriceFeedsWithSlots (publishTime, 2 );
15211517 mockParsePriceFeedUpdatesWithSlots (pyth, priceFeeds, slots);
15221518 bytes [] memory updateData = createMockUpdateData (priceFeeds);
1523- bytes32 [] memory priceIds = params.priceIds;
15241519
15251520 vm.prank (pusher);
1526- scheduler.updatePriceFeeds (subscriptionId, updateData, priceIds );
1521+ scheduler.updatePriceFeeds (subscriptionId, updateData);
15271522
15281523 // Try to access from a non-whitelisted address (should succeed)
15291524 address randomUser = address (0xdead );
@@ -1567,7 +1562,7 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
15671562 bytes [] memory updateData = createMockUpdateData (priceFeeds);
15681563
15691564 vm.prank (pusher);
1570- scheduler.updatePriceFeeds (subscriptionId, updateData, priceIds );
1565+ scheduler.updatePriceFeeds (subscriptionId, updateData);
15711566
15721567 // Try to access from a non-whitelisted address (should fail)
15731568 vm.startPrank (address (0xdead ));
@@ -1634,7 +1629,7 @@ contract SchedulerTest is Test, SchedulerEvents, PulseSchedulerTestUtils {
16341629 bytes [] memory updateData = createMockUpdateData (priceFeeds);
16351630
16361631 vm.prank (pusher);
1637- scheduler.updatePriceFeeds (subscriptionId, updateData, priceIds );
1632+ scheduler.updatePriceFeeds (subscriptionId, updateData);
16381633
16391634 // Get EMA prices
16401635 bytes32 [] memory emptyPriceIds = new bytes32 [](0 );
0 commit comments