diff --git a/Cargo.toml b/Cargo.toml index b3130b47..2987d94c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,6 +32,8 @@ thiserror = "1" tracing = { version = "0.1", default-features = false } serde = { version = "1", default-features = false, features = ["derive"] } serde_json = "1" +serde-wasm-bindgen = { version = "0.6.5", default-features = false } +web-sys = { version = "0.3.68", default-features = false, features = ["console"] } uniffi = { version = "0.27.1", default-features = false } [profile] diff --git a/bindings/cdk-js/Cargo.toml b/bindings/cdk-js/Cargo.toml index 516a77d1..8490ac86 100644 --- a/bindings/cdk-js/Cargo.toml +++ b/bindings/cdk-js/Cargo.toml @@ -6,6 +6,7 @@ license.workspace = true homepage.workspace = true repository.workspace = true rust-version.workspace = true +description = "Cashu Development Kit JS Bindings" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] @@ -16,9 +17,9 @@ cdk = { workspace = true, features = ["wallet"] } cdk-rexie = { workspace = true, features = ["wallet"] } console_error_panic_hook = "0.1" js-sys = "0.3" -serde-wasm-bindgen = "0.6" +serde-wasm-bindgen.workspace = true serde_json.workspace = true serde.workspace = true wasm-bindgen = { version = "0.2.92", features = ["serde-serialize"] } wasm-bindgen-futures = "0.4.41" -web-sys = { version = "0.3.68", features = ["console"] } +web-sys.workspace = true diff --git a/crates/cdk-rexie/Cargo.toml b/crates/cdk-rexie/Cargo.toml index f14e967a..f0b09d5d 100644 --- a/crates/cdk-rexie/Cargo.toml +++ b/crates/cdk-rexie/Cargo.toml @@ -20,5 +20,5 @@ tokio.workspace = true serde.workspace = true serde_json.workspace = true thiserror.workspace = true -serde-wasm-bindgen = "0.6.5" -web-sys = { version = "0.3", features = ["console"] } +serde-wasm-bindgen.workspace = true +web-sys.workspace = true diff --git a/crates/cdk/src/nuts/nut11/mod.rs b/crates/cdk/src/nuts/nut11/mod.rs index a3ea812e..eea65bfc 100644 --- a/crates/cdk/src/nuts/nut11/mod.rs +++ b/crates/cdk/src/nuts/nut11/mod.rs @@ -309,7 +309,7 @@ impl SpendingConditions { match self { Self::P2PKConditions { data, conditions } => { let mut pubkeys = vec![data.clone()]; - pubkeys.extend(conditions.pubkeys.clone().unwrap_or_default().into_iter()); + pubkeys.extend(conditions.pubkeys.clone().unwrap_or_default()); Some(pubkeys) }