Open dev8723 opened 1 year ago
Return type is definitely not all SimulateResponse here
SimulateResponse
#[derive(QueryResponses)] #[cw_serde] pub enum QueryMsg { #[returns(SimulateResponse)] SimulateQuery(SimulateQueryMsg), #[returns(SimulateResponse)] QueryValidateJobCreation(QueryValidateJobCreationMsg), #[returns(SimulateResponse)] QueryHydrateVars(QueryHydrateVarsMsg), #[returns(SimulateResponse)] QueryResolveCondition(QueryResolveConditionMsg), #[returns(SimulateResponse)] QueryApplyVarFn(QueryApplyVarFnMsg), #[returns(SimulateResponse)] QueryHydrateMsgs(QueryHydrateMsgsMsg), }
#[cw_serde] pub struct SimulateResponse { pub response: String, }
some of them are returning string, some returning Vec<CosmosMsg>, setting it incorrectly might not break the query, but i think it will mess up the generated json schema and typescript client.
Vec<CosmosMsg>
Return type is definitely not all
SimulateResponse
heresome of them are returning string, some returning
Vec<CosmosMsg>
, setting it incorrectly might not break the query, but i think it will mess up the generated json schema and typescript client.