pub fn check_account(sender:T::AccountId, cahash:T::Hash) -> Result {
        // account should be registered for the provided CAHash
        let accounts = Self::accounts_by_cahash(cahash);
        ensure!(accounts.contains(&sender), "Your account is not registered for this CAHash.");
        Ok(())
    }
// helper function to check if the account is registered.
// TODO: verify certification. Now only checks runtime storage.
helper function to check if the account is registered.
TODO: verify certification. Now only checks runtime storage.
helper function to check if the account is registered . TODO : verify certification . Now only checks runtime storage .
pub fn check_account(sender:T::AccountId, cahash:T::Hash) -> Result {
        // account should be registered for the provided CAHash
        let accounts = Self::accounts_by_cahash(cahash);
        ensure!(accounts.contains(&sender), "Your account is not registered for this CAHash.");
        Ok(())
    }
pub fn check_account ( sender : T :: AccountId , cahash : T :: Hash ) -> Result { // account should be registered for the provided CAHash let accounts = Self :: accounts_by_cahash ( cahash ) ; ensure ! ( accounts contains ( sender ) " " ) ; Ok ( ( ) ) }
helper function to check if the account is registered.
helper function to check if the account is registered .
sender
T::AccountId
cahash
T::Hash
sender
T::AccountId
cahash
T::Hash