Skip to content

Commit 85213c5

Browse files
fix: use memory instead of storage for priceUpdates struct (#2647)
1 parent 5814575 commit 85213c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

target_chains/ethereum/contracts/contracts/pulse/Scheduler.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ abstract contract Scheduler is IScheduler, SchedulerState {
450450
params.priceIds.length
451451
);
452452
for (uint8 i = 0; i < params.priceIds.length; i++) {
453-
PythStructs.PriceFeed storage priceFeed = _state.priceUpdates[
453+
PythStructs.PriceFeed memory priceFeed = _state.priceUpdates[
454454
subscriptionId
455455
][params.priceIds[i]];
456456
// Check if the price feed exists (price ID is valid and has been updated)
@@ -468,7 +468,7 @@ abstract contract Scheduler is IScheduler, SchedulerState {
468468
priceIds.length
469469
);
470470
for (uint8 i = 0; i < priceIds.length; i++) {
471-
PythStructs.PriceFeed storage priceFeed = _state.priceUpdates[
471+
PythStructs.PriceFeed memory priceFeed = _state.priceUpdates[
472472
subscriptionId
473473
][priceIds[i]];
474474

0 commit comments

Comments
 (0)