pub fn is_task_initiator(task_id: &T::Hash, task_closer: &T::AccountId) -> Result<bool, Error<T>> {
			match Self::tasks(task_id) {
				Some(task) => Ok(task.initiator == *task_closer),
				None => Err(<Error<T>>::TaskNotExist)
			}
		}
// Function to check if the current signer is the task_initiator
Function to check if the current signer is the task_initiator
Function to check if the current signer is the task_initiator
pub fn is_task_initiator(task_id: &T::Hash, task_closer: &T::AccountId) -> Result<bool, Error<T>> {
			match Self::tasks(task_id) {
				Some(task) => Ok(task.initiator == *task_closer),
				None => Err(<Error<T>>::TaskNotExist)
			}
		}
pub fn is_task_initiator ( task_id : & T :: Hash , task_closer : & T :: AccountId ) -> Result < bool , Error < T > > { match Self :: tasks ( task_id ) { Some ( task ) => Ok ( task . initiator == * task_closer ) , None => Err ( < Error < T > > :: TaskNotExist ) } }
Function to check if the current signer is the task_initiator
Function to check if the current signer is the task_initiator
task_id
&T::Hash
task_closer
&T::AccountId
task_id
&T::Hash
task_closer
&T::AccountId