Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smol fix for process_remove_member.rs #1166

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
too many :s
staccDOTsol committed Mar 26, 2024
commit 8a6e022279098c556d039995cd719de1b7ef5b70
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ pub fn remove_member(ctx: Context<RemoveMember>) -> 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, &solana_program::system_program:::id()).is_err() {
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