From 54d7599f6ed1a57c3f3bddbafae74d9b4b156ee2 Mon Sep 17 00:00:00 2001 From: akhercha Date: Thu, 12 Sep 2024 18:23:26 +0200 Subject: [PATCH] feat(cairo_contracts): Fix --- cairo/crates/pragma_feeds_registry/src/contract.cairo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cairo/crates/pragma_feeds_registry/src/contract.cairo b/cairo/crates/pragma_feeds_registry/src/contract.cairo index 49ab4572..3e22b5d0 100644 --- a/cairo/crates/pragma_feeds_registry/src/contract.cairo +++ b/cairo/crates/pragma_feeds_registry/src/contract.cairo @@ -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);