pub fn create_croncat_task_submessage(
querier: &QuerierWrapper<'_>,
info: MessageInfo,
croncat_factory_address: Addr,
task: TaskRequest,
reply_type: Option<CronCatTaskSubmessageParams>,
) -> Result<SubMsg, CronCatContractError>
Expand description
Returns a SubMsg
This can be conveniently used when returning a Response
where you might handle what happened in the reply entry point.
Ok(Response::new().add_submessage(returned_val))