Skip to content

Commit 6b4b0c8

Browse files
committed
restored update functionality upon flag
1 parent 2a5b2ec commit 6b4b0c8

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,10 @@ abstract contract Pyth is
359359
updateData[i],
360360
context
361361
);
362+
if (storeUpdatesIfFresh) {
363+
bytes32 curPriceId = context.priceIds[i];
364+
updateLatestPriceIfNecessary(curPriceId, _state.latestPriceInfo[curPriceId]);
365+
}
362366
}
363367
}
364368

0 commit comments

Comments
 (0)