Skip to content

Commit

Permalink
fix: issue #1527
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Ricketts authored and webmaster128 committed Dec 6, 2022
1 parent 37555ee commit 9b6ffba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/schema-derive/src/generate_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl Parse for Options {
let ty = ty.unwrap_type();
(
quote! {Some(::cosmwasm_schema::schema_for!(#ty))},
quote! { Some(<#ty as QueryResponses>::response_schemas().unwrap()) },
quote! { Some(<#ty as ::cosmwasm_schema::QueryResponses>::response_schemas().unwrap()) },
)
}
None => (quote! { None }, quote! { None }),
Expand Down Expand Up @@ -272,7 +272,7 @@ mod tests {
query: Some(::cosmwasm_schema::schema_for!(QueryMsg)),
migrate: Some(::cosmwasm_schema::schema_for!(MigrateMsg)),
sudo: Some(::cosmwasm_schema::schema_for!(SudoMsg)),
responses: Some(<QueryMsg as QueryResponses>::response_schemas().unwrap()),
responses: Some(<QueryMsg as ::cosmwasm_schema::QueryResponses>::response_schemas().unwrap()),
}
}
);
Expand Down

0 comments on commit 9b6ffba

Please sign in to comment.