From db2c9bd58292d0b5651be09e10d6a8922170605e Mon Sep 17 00:00:00 2001 From: Jarett Dunn Date: Wed, 10 Jan 2024 14:32:29 -0400 Subject: [PATCH] Update process_remove_member.rs it's actually better like this, tbf. --- .../src/processors/remove_member/process_remove_member.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydra/program/src/processors/remove_member/process_remove_member.rs b/hydra/program/src/processors/remove_member/process_remove_member.rs index 9155efb77b..667ec039f5 100644 --- a/hydra/program/src/processors/remove_member/process_remove_member.rs +++ b/hydra/program/src/processors/remove_member/process_remove_member.rs @@ -38,7 +38,7 @@ pub fn remove_member(ctx: Context) -> Result<()> { assert_owned_by(&fanout.to_account_info(), &crate::ID)?; assert_owned_by(&member_voucher.to_account_info(), &crate::ID)?; update_fanout_for_remove(fanout)?; - if assert_owned_by(&ctx.accounts.destination, &spl_token::id()).is_ok() { + if assert_owned_by(&ctx.accounts.destination, &solana_program::system_program:::id()).is_err() { return Err(HydraError::InvalidCloseAccountDestination.into()); } if fanout.membership_model != MembershipModel::NFT