Skip to content

Commit 9453d7b

Browse files
committed
removed price ids input 2
1 parent 82783ec commit 9453d7b

File tree

1 file changed

+6
-6
lines changed
  • target_chains/stylus/contracts/pyth-receiver/src

1 file changed

+6
-6
lines changed

target_chains/stylus/contracts/pyth-receiver/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,12 @@ impl PythReceiver {
307307
);
308308

309309
// Find the index of the price_id in the input price_ids vector
310-
if let Some(idx) = price_ids.iter().position(|id| *id == price_feed_message.feed_id) {
311-
if price_feeds.len() <= idx {
312-
price_feeds.resize(idx + 1, Default::default());
313-
}
314-
price_feeds[idx] = price_info_return;
315-
}
310+
// if let Some(idx) = price_ids.iter().position(|id| *id == price_feed_message.feed_id) {
311+
// if price_feeds.len() <= idx {
312+
// price_feeds.resize(idx + 1, Default::default());
313+
// }
314+
// price_feeds[idx] = price_info_return;
315+
// }
316316
},
317317
_ => {
318318
return Err(PythReceiverError::InvalidAccumulatorMessageType);

0 commit comments

Comments
 (0)