From 283c466e1d66cfcc8c51e2b97be567ba78085ee4 Mon Sep 17 00:00:00 2001 From: Jon Gurary Date: Fri, 23 Aug 2024 13:59:48 -0400 Subject: [PATCH] fix fuzz attempt 1 --- programs/marginfi/fuzz/src/user_accounts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/marginfi/fuzz/src/user_accounts.rs b/programs/marginfi/fuzz/src/user_accounts.rs index 05958137..21e77a0c 100644 --- a/programs/marginfi/fuzz/src/user_accounts.rs +++ b/programs/marginfi/fuzz/src/user_accounts.rs @@ -86,7 +86,7 @@ impl<'info> UserAccount<'info> { .lending_account .balances .iter() - .filter(|a| a.active && !exclude_banks.contains(&a.bank_pk)) + .filter(|a| a.is_active() && !exclude_banks.contains(&a.bank_pk)) .flat_map(|balance| { let bank_accounts = bank_map.get(&balance.bank_pk).unwrap(); assert_eq!(balance.bank_pk, bank_accounts.bank.key());