From 7efcfaab0998d1bb59da54e219e9334d32493c71 Mon Sep 17 00:00:00 2001 From: skudasov Date: Fri, 14 Jan 2022 19:04:45 +0300 Subject: [PATCH] fix raising flag --- contracts/programs/store/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/programs/store/src/lib.rs b/contracts/programs/store/src/lib.rs index ac18a3733..b73c95f5d 100644 --- a/contracts/programs/store/src/lib.rs +++ b/contracts/programs/store/src/lib.rs @@ -169,7 +169,7 @@ pub mod store { }; let feed_address = ctx.accounts.feed.key(); - if is_valid { + if !is_valid { // raise flag if not raised yet // if the len reaches array len, we're at capacity