Skip to content

Commit

Permalink
Nits again
Browse files Browse the repository at this point in the history
  • Loading branch information
Kayanski committed Jan 15, 2025
1 parent d70d57f commit 9798b59
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cosmwasm/ibc-union/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ workspace = true
crate-type = ["cdylib", "rlib"]

[features]
cw-orch-interface = []
cw-orch-interface = ["dep:cosmwasm-schema", "dep:cw-orch"]
library = []

[dependencies]
Expand Down
3 changes: 2 additions & 1 deletion cosmwasm/ibc-union/core/msg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ cw-orch-interface = [
"dep:cosmwasm-std",
"dep:cosmwasm-schema",
"unionlabs-primitives/schemars",
"ibc-solidity/schemars",
]
schemars = []

[dependencies]
ibc-solidity = { workspace = true, features = ["serde", "schemars"] }
ibc-solidity = { workspace = true, features = ["serde"] }
serde = { workspace = true, features = ["derive"] }
unionlabs-primitives = { workspace = true, features = ["serde"] }

Expand Down
3 changes: 2 additions & 1 deletion cosmwasm/ibc-union/core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#![cfg_attr(not(test), warn(clippy::unwrap_used))]

pub mod contract;
pub mod state;
#[cfg(feature = "cw-orch-interface")]
pub mod interface;
pub mod state;

use cosmwasm_std::{Addr, StdError};
use ibc_solidity::{ChannelState, ConnectionState};
Expand Down
4 changes: 2 additions & 2 deletions lib/unionlabs-primitives/src/fixed_bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ impl<'de, const BYTES: usize, E: Encoding> serde::Deserialize<'de> for FixedByte
#[cfg(feature = "schemars")]
impl<const BYTES: usize, E: Encoding> schemars::JsonSchema for FixedBytes<BYTES, E> {
fn schema_name() -> String {
format!("Hash")
"Hash".to_string()
}

/// The FixedBytes object is serialized as an array in JSON
/// The `FixedBytes` object is serialized as an array in JSON
fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema {
let mut schema_object = schemars::schema::SchemaObject {
instance_type: Some(schemars::schema::InstanceType::Array.into()),
Expand Down

0 comments on commit 9798b59

Please sign in to comment.