diff --git a/lib/unionlabs/src/cosmwasm/wasm/union/custom_query.rs b/lib/unionlabs/src/cosmwasm/wasm/union/custom_query.rs index 635972833b..ab98b917c8 100644 --- a/lib/unionlabs/src/cosmwasm/wasm/union/custom_query.rs +++ b/lib/unionlabs/src/cosmwasm/wasm/union/custom_query.rs @@ -1,6 +1,5 @@ use core::fmt::Debug; -#[cfg(feature = "cosmwasm")] use cosmwasm_std::{Binary, Deps, QueryRequest}; use crate::bls::BlsPublicKey; @@ -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, public_keys: Vec, @@ -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, public_keys: Vec, @@ -72,7 +68,6 @@ pub fn query_aggregate_public_keys( } #[cfg(feature = "stargate")] -#[cfg(feature = "cosmwasm")] use { crate::{ encoding::{Decode, DecodeAs, Proto}, @@ -87,7 +82,6 @@ use { #[allow(clippy::missing_panics_doc)] #[cfg(feature = "stargate")] -#[cfg(feature = "cosmwasm")] pub fn query_consensus_state( deps: Deps, env: &Env, diff --git a/lib/unionlabs/src/cosmwasm/wasm/union/mod.rs b/lib/unionlabs/src/cosmwasm/wasm/union/mod.rs index b2e7f4ac32..c01577ced1 100644 --- a/lib/unionlabs/src/cosmwasm/wasm/union/mod.rs +++ b/lib/unionlabs/src/cosmwasm/wasm/union/mod.rs @@ -1 +1,2 @@ +#[cfg(feature = "cosmwasm")] pub mod custom_query;