Skip to content

Commit 9798b59

Browse files
committed
Nits again
1 parent d70d57f commit 9798b59

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

cosmwasm/ibc-union/core/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ workspace = true
1313
crate-type = ["cdylib", "rlib"]
1414

1515
[features]
16-
cw-orch-interface = []
16+
cw-orch-interface = ["dep:cosmwasm-schema", "dep:cw-orch"]
1717
library = []
1818

1919
[dependencies]

cosmwasm/ibc-union/core/msg/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ cw-orch-interface = [
1616
"dep:cosmwasm-std",
1717
"dep:cosmwasm-schema",
1818
"unionlabs-primitives/schemars",
19+
"ibc-solidity/schemars",
1920
]
2021
schemars = []
2122

2223
[dependencies]
23-
ibc-solidity = { workspace = true, features = ["serde", "schemars"] }
24+
ibc-solidity = { workspace = true, features = ["serde"] }
2425
serde = { workspace = true, features = ["derive"] }
2526
unionlabs-primitives = { workspace = true, features = ["serde"] }
2627

cosmwasm/ibc-union/core/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#![cfg_attr(not(test), warn(clippy::unwrap_used))]
22

33
pub mod contract;
4-
pub mod state;
4+
#[cfg(feature = "cw-orch-interface")]
55
pub mod interface;
6+
pub mod state;
67

78
use cosmwasm_std::{Addr, StdError};
89
use ibc_solidity::{ChannelState, ConnectionState};

lib/unionlabs-primitives/src/fixed_bytes.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,10 @@ impl<'de, const BYTES: usize, E: Encoding> serde::Deserialize<'de> for FixedByte
239239
#[cfg(feature = "schemars")]
240240
impl<const BYTES: usize, E: Encoding> schemars::JsonSchema for FixedBytes<BYTES, E> {
241241
fn schema_name() -> String {
242-
format!("Hash")
242+
"Hash".to_string()
243243
}
244244

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

0 commit comments

Comments
 (0)