Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianElvis committed Aug 13, 2024
1 parent 81e2cc2 commit 44b2d12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/btc-staking/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ fn get_btc_tip(deps: &DepsMut) -> Result<u64, ContractError> {
let query_msg = BabylonQueryMsg::BtcTipHeader {};

// Query the Babylon contract
let tip_bytes: Bytes = deps.querier.query_wasm_smart(&babylon_addr, &query_msg)?;
let tip: BtcHeaderResponse = from_json(&tip_bytes)?;
// TODO: use raw query
let tip: BtcHeaderResponse = deps.querier.query_wasm_smart(&babylon_addr, &query_msg)?;

Ok(tip.height)
}
Expand Down

0 comments on commit 44b2d12

Please sign in to comment.