pub fn assert_is_valid_governing_token_mint(
        &self,
        governing_token_mint: &Pubkey,
    ) -> Result<(), ProgramError> {
        if self.community_mint == *governing_token_mint {
            return Ok(());
        }

        if self.council_mint == Some(*governing_token_mint) {
            return Ok(());
        }

        Err(GovernanceError::InvalidGoverningTokenMint.into())
    }
/// Asserts the given mint is either Community or Council mint of the Realm
Asserts the given mint is either Community or Council mint of the Realm
Asserts the given mint is either Community or Council mint of the Realm
pub fn assert_is_valid_governing_token_mint(
        &self,
        governing_token_mint: &Pubkey,
    ) -> Result<(), ProgramError> {
        if self.community_mint == *governing_token_mint {
            return Ok(());
        }
        if self.council_mint == Some(*governing_token_mint) {
            return Ok(());
        }
        Err(GovernanceError::InvalidGoverningTokenMint.into())
    }
pub fn assert_is_valid_governing_token_mint ( & self , governing_token_mint : & Pubkey , ) -> Result < ( ) , ProgramError > { if self . community_mint == * governing_token_mint { return Ok ( ( ) ) ; } if self . council_mint == Some ( * governing_token_mint ) { return Ok ( ( ) ) ; } Err ( GovernanceError :: InvalidGoverningTokenMint . into ( ) ) }
Asserts the given mint is either Community or Council mint of the Realm
Asserts the given mint is either Community or Council mint of the Realm
&self
governing_token_mint
&Pubkey
&self
governing_token_mint
&Pubkey