Skip to content

Commit

Permalink
fix: compile error with optional nuts
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Nov 7, 2023
1 parent 3815627 commit 9d1deb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions bindings/cashu-sdk-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ rust-version.workspace = true
name = "cashu_sdk_ffi"
crate-type = ["cdylib", "staticlib"]


[dependencies]
cashu-ffi = { path = "../cashu-ffi" }
cashu-sdk = { path = "../../crates/cashu-sdk", default-features = false, features = ["wallet", "mint", "blocking"] }
cashu-sdk = { path = "../../crates/cashu-sdk", default-features = false, features = ["wallet", "mint", "blocking", "nut07", "nut09"] }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
uniffi = { workspace = true }

[build-dependencies]
uniffi = { workspace = true, features = ["build"] }

2 changes: 1 addition & 1 deletion crates/cashu-sdk/src/client/blocking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl Client {
#[cfg(feature = "nut07")]
pub fn check_spendable(
&self,
proofs: &Vec<nut00::mint::Proof>,
proofs: &Vec<cashu::nuts::nut00::mint::Proof>,
) -> Result<CheckSpendableResponse, Error> {
RUNTIME.block_on(async { self.client.check_spendable(proofs).await })
}
Expand Down

0 comments on commit 9d1deb3

Please sign in to comment.