Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeserializeOwned issue for Proto Stargate Queries #147

Open
CalicoNino opened this issue May 2, 2024 · 0 comments
Open

DeserializeOwned issue for Proto Stargate Queries #147

CalicoNino opened this issue May 2, 2024 · 0 comments
Assignees
Labels
type: enhancement New feature or request

Comments

@CalicoNino
Copy link

the trait bound `QueryExchangeRateResponse: DeserializeOwned` is not satisfied
required for `QueryExchangeRateResponse` to implement `DeserializeOwned`rustc[Click for full compiler diagnostic](rust-analyzer-diagnostics-view:/diagnostic%20message%20%5B0%5D?0#file%3A%2F%2F%2Fhome%2Fcalico%2Fworkshops%2Fcw-workshop%2Fsrc%2Fcontract.rs)
traits.rs(242, 21): required by a bound in `QuerierWrapper::<'a, C>::query`

Error from here

    pub fn get_price(deps: Deps, pair: String) -> StdResult<GetPriceResp> {
        let query_request = QueryExchangeRateRequest { pair: pair.clone() };

        let query = query_request.into_stargate_query()?;

        let response: QueryExchangeRateResponse = deps.querier.query(&query)?; //error apears on .query

        Ok(response)
    }
@CalicoNino CalicoNino added type: bug/fix A pull request that fixes someting (pull) OR a ticket that highlights a bug (issue). type: enhancement New feature or request and removed type: bug/fix A pull request that fixes someting (pull) OR a ticket that highlights a bug (issue). labels May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants