Skip to content

Commit

Permalink
fix: add cosmwasm feature to unionlabs
Browse files Browse the repository at this point in the history
  • Loading branch information
PoisonPhang authored and aeryz committed Jun 5, 2024
1 parent eb050c0 commit 94fbf82
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/unionlabs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ default = ["ethabi", "std", "stargate"]
ethabi = ["contracts", "ethers-core", "ethers-contract-derive", "ethers"]
grpc = ["protos/client"]
std = ["ethers-core/std"]
cosmwasm = [""]

arbitrary = ["dep:arbitrary", "primitive-types/arbitrary"]
fuzzing = ["arbitrary", "serde_json"]
Expand Down
2 changes: 2 additions & 0 deletions lib/unionlabs/src/cosmwasm/wasm/union/custom_query.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use core::fmt::Debug;

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

use crate::bls::BlsPublicKey;
Expand Down Expand Up @@ -71,6 +72,7 @@ pub fn query_aggregate_public_keys(
}

#[cfg(feature = "stargate")]
#[cfg(feature = "cosmwasm")]
use {
crate::{
encoding::{Decode, DecodeAs, Proto},
Expand Down
1 change: 1 addition & 0 deletions lib/unionlabs/src/google/protobuf/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ impl TryFrom<cosmwasm_std::Timestamp> for Timestamp {
}
}

#[cfg(feature = "cosmwasm")]
impl From<Timestamp> for cosmwasm_std::Timestamp {
fn from(value: Timestamp) -> Self {
// REVIEW(aeryz): I always expect timestamp to be non-negative integer, that's
Expand Down

0 comments on commit 94fbf82

Please sign in to comment.