Skip to content

Commit

Permalink
feat(cairo_contracts): Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akhercha committed Sep 12, 2024
1 parent f422597 commit 54d7599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cairo/crates/pragma_feeds_registry/src/contract.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ pub mod PragmaFeedRegistry {
fn _remove_feed_id(ref self: ContractState, len_feed_ids: u32, feed_id_index: u32) {
if (feed_id_index == len_feed_ids - 1) {
self.feed_ids.write(feed_id_index, 0);
self.len_feed_ids.write(0);
self.len_feed_ids.write(len_feed_ids - 1);
} else {
let last_feed_id = self.feed_ids.read(len_feed_ids - 1);
self.feed_ids.write(feed_id_index, last_feed_id);
Expand Down

0 comments on commit 54d7599

Please sign in to comment.