Skip to content

Commit

Permalink
contrib: add webln feature check
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Jan 20, 2024
1 parent c0d9486 commit cde1069
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions contrib/scripts/check-crates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ buildargs=(
"-p nostr-sdk"
"-p nostr-sdk --no-default-features"
"-p nostr-sdk --features blocking"
"-p nostr-sdk --features webln --target wasm32-unknown-unknown"
"-p nostr-sdk --features indexeddb --target wasm32-unknown-unknown"
"-p nostr-sdk --features sqlite"
)
Expand Down
1 change: 1 addition & 0 deletions crates/nostr-sdk/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ pub enum Error {
#[cfg(feature = "nip57")]
#[error(transparent)]
LnUrlPay(#[from] lnurl_pay::Error),
/// WebLN error
#[cfg(all(feature = "webln", target_arch = "wasm32"))]
#[error(transparent)]
WebLN(#[from] webln::Error),
Expand Down

0 comments on commit cde1069

Please sign in to comment.