You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
}
The text was updated successfully, but these errors were encountered:
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
Error from here
The text was updated successfully, but these errors were encountered: