Skip to content

Commit e1dcc2f

Browse files
aditya520cctdaniel
authored andcommitted
update
1 parent b950569 commit e1dcc2f

File tree

1 file changed

+10
-0
lines changed
  • target_chains/ethereum/contracts/contracts/pyth

1 file changed

+10
-0
lines changed

target_chains/ethereum/contracts/contracts/pyth/Pyth.sol

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,16 @@ abstract contract Pyth is
383383
revert PythErrors.InvalidUpdateData();
384384
}
385385

386+
for (uint j = 0; j < numUpdatesFirst; j++) {
387+
PythInternalStructs.TwapPriceInfo memory twapPriceInfoFirst;
388+
PythInternalStructs.TwapPriceInfo memory twapPriceInfoSecond;
389+
bytes32 priceIdFirst;
390+
bytes32 priceIdSecond;
391+
392+
(offsetFirst, twapPriceInfoFirst, priceIdFirst) = extractPriceInfoFromMerkleProof(digestFirst, encodedFirst, offsetFirst);
393+
(offsetSecond, twapPriceInfoSecond, priceIdSecond) = extractPriceInfoFromMerkleProof(digestSecond, encodedSecond, offsetSecond);
394+
}
395+
386396

387397
} else {
388398
revert PythErrors.InvalidUpdateData();

0 commit comments

Comments
 (0)