Skip to content

Commit

Permalink
fix(unionlabs): gate custom_query
Browse files Browse the repository at this point in the history
  • Loading branch information
PoisonPhang authored and aeryz committed Jun 5, 2024
1 parent 66a258c commit e53d976
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 0 additions & 6 deletions lib/unionlabs/src/cosmwasm/wasm/union/custom_query.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use core::fmt::Debug;

#[cfg(feature = "cosmwasm")]
use cosmwasm_std::{Binary, Deps, QueryRequest};

use crate::bls::BlsPublicKey;
Expand Down Expand Up @@ -30,10 +29,8 @@ pub enum UnionCustomQuery {
},
}

#[cfg(feature = "cosmwasm")]
impl cosmwasm_std::CustomQuery for UnionCustomQuery {}

#[cfg(feature = "cosmwasm")]
pub fn query_fast_aggregate_verify(
deps: Deps<UnionCustomQuery>,
public_keys: Vec<Binary>,
Expand All @@ -51,7 +48,6 @@ pub fn query_fast_aggregate_verify(
.map_err(|e| Error::FastAggregateVerify(e.to_string()))
}

#[cfg(feature = "cosmwasm")]
pub fn query_aggregate_public_keys(
deps: Deps<UnionCustomQuery>,
public_keys: Vec<BlsPublicKey>,
Expand All @@ -72,7 +68,6 @@ pub fn query_aggregate_public_keys(
}

#[cfg(feature = "stargate")]
#[cfg(feature = "cosmwasm")]
use {
crate::{
encoding::{Decode, DecodeAs, Proto},
Expand All @@ -87,7 +82,6 @@ use {

#[allow(clippy::missing_panics_doc)]
#[cfg(feature = "stargate")]
#[cfg(feature = "cosmwasm")]
pub fn query_consensus_state<T>(
deps: Deps<UnionCustomQuery>,
env: &Env,
Expand Down
1 change: 1 addition & 0 deletions lib/unionlabs/src/cosmwasm/wasm/union/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#[cfg(feature = "cosmwasm")]
pub mod custom_query;

0 comments on commit e53d976

Please sign in to comment.