Skip to content

Commit

Permalink
Remove redundant query
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitys7 committed Sep 19, 2024
1 parent 815e888 commit 9645e32
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions contracts/consumer/band-price-feed/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,6 @@ impl RemotePriceFeedContract {
Ok(Response::new())
}

#[sv::msg(query)]
pub fn get_price(&self, ctx: QueryCtx) -> Result<PriceResponse, ContractError> {
Ok(self
.price_keeper
.price(ctx.deps, &ctx.env)
.map(|rate| PriceResponse {
native_per_foreign: rate,
})?)
}

#[sv::msg(exec)]
pub fn request(&self, ctx: ExecCtx) -> Result<Response, ContractError> {
let ExecCtx { deps, env, info: _ } = ctx;
Expand Down

0 comments on commit 9645e32

Please sign in to comment.