@@ -335,26 +335,14 @@ contract PythTest is Test, WormholeTestUtils, PythTestUtils {
335335 uint updateFee
336336 ) = createBatchedUpdateDataFromMessages (messages);
337337
338- // Store prices before update
339- PythStructs.Price[] memory originalPrices = new PythStructs.Price [](priceIds.length );
340- for (uint i = 0 ; i < priceIds.length ; i++ ) {
341- originalPrices[i] = pyth.getPriceUnsafe (priceIds[i]);
342- }
343-
344338 pyth.parsePriceFeedUpdatesWithConfig {
345339 value: updateFee
346- }(updateData, priceIds, 0 , MAX_UINT64, false , true , true );
340+ }(updateData, priceIds, 0 , MAX_UINT64, false , true , false );
347341
348- // validate that stored prices of each priceId are same as before update
349- for (uint i = 0 ; i < priceIds.length ; i++ ) {
350- PythStructs.Price memory curPrice = pyth.getPriceUnsafe (
351- priceIds[i]
352- );
353-
354- assertEq (curPrice.price, originalPrices[i].price);
355- assertEq (curPrice.conf, originalPrices[i].conf);
356- assertEq (curPrice.expo, originalPrices[i].expo);
357- assertEq (curPrice.publishTime, originalPrices[i].publishTime);
342+ // validate that stored prices of each priceId are still unpopulated
343+ for (uint i = 0 ; i < numMessages; i++ ) {
344+ vm.expectRevert (PythErrors.PriceFeedNotFound.selector );
345+ pyth.getPriceUnsafe (priceIds[i]);
358346 }
359347 }
360348
0 commit comments