fn create_task_info<T: Config>(_num_fields: u32) -> Task<T> {
	
	// Populate with worst case scenario
	let mut data = Vec::new();
	data.push(u8::MAX);

	let initiator: T::AccountId = whitelisted_caller();
	let volunteer: T::AccountId = whitelisted_caller();
	let owner: T::AccountId = whitelisted_caller();
	let balance = <T as pallet::Config>::Currency::total_balance(&initiator);
	let deadline = u32::MAX;
	let status: TaskStatus = TaskStatus::InProgress;

	// Create object
	let info = Task {
		initiator: initiator,
		volunteer: volunteer,
		current_owner: owner,
		requirements: data,
		status: status,
		budget: balance,
		deadline: deadline,
	};

	return info
}
// This creates and returns a `Task` object.
This creates and returns a `Task` object.
This creates and returns a ` Task ` object .
fn create_task_info<T: Config>(_num_fields: u32) -> Task<T> {
	// Populate with worst case scenario
	let mut data = Vec::new();
	data.push(u8::MAX);
	let initiator: T::AccountId = whitelisted_caller();
	let volunteer: T::AccountId = whitelisted_caller();
	let owner: T::AccountId = whitelisted_caller();
	let balance = <T as pallet::Config>::Currency::total_balance(&initiator);
	let deadline = u32::MAX;
	let status: TaskStatus = TaskStatus::InProgress;
	// Create object
	let info = Task {
		initiator: initiator,
		volunteer: volunteer,
		current_owner: owner,
		requirements: data,
		status: status,
		budget: balance,
		deadline: deadline,
	};
	return info
}
fn create_task_info < T : Config > ( _num_fields : u32 ) -> Task < T > { // Populate with worst case scenario let mut data = Vec :: new ( ) ; data . push ( u8 :: MAX ) ; let initiator : T :: AccountId = whitelisted_caller ( ) ; let volunteer : T :: AccountId = whitelisted_caller ( ) ; let owner : T :: AccountId = whitelisted_caller ( ) ; let balance = < T as pallet :: Config > :: Currency :: total_balance ( & initiator ) ; let deadline = u32 :: MAX ; let status : TaskStatus = TaskStatus :: InProgress ; // Create object let info = Task { initiator : initiator , volunteer : volunteer , current_owner : owner , requirements : data , status : status , budget : balance , deadline : deadline , } ; return info }
This creates and returns a `Task` object.
This creates and returns a ` Task ` object .
_num_fields
u32
_num_fields
u32