Skip to content

Commit

Permalink
Update process_remove_member.rs
Browse files Browse the repository at this point in the history
it's actually better like this, tbf.
  • Loading branch information
staccDOTsol authored Jan 10, 2024
1 parent 1afee7b commit db2c9bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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, &spl_token::id()).is_ok() {
if assert_owned_by(&ctx.accounts.destination, &solana_program::system_program:::id()).is_err() {

Check failure on line 41 in hydra/program/src/processors/remove_member/process_remove_member.rs

View workflow job for this annotation

GitHub Actions / Program: hydra / Build Lint and Test

expected identifier, found `:`
return Err(HydraError::InvalidCloseAccountDestination.into());
}
if fanout.membership_model != MembershipModel::NFT
Expand Down

0 comments on commit db2c9bd

Please sign in to comment.