Skip to content

Commit c528033

Browse files
committed
Fix NostrConnect constructor
Fix the "null pointer passed to rust" error since currently the `new NostrConnect(uri, keys, timeout)` wasn't working. Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent 632d0a6 commit c528033

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,5 @@
3737

3838
### Fixed
3939

40-
### Removed
40+
* Fix `NostrConnect` constructor
4141

42-
### Deprecated

src/connect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl From<NostrConnect> for JsNostrConnect {
3636
#[wasm_bindgen(js_class = NostrConnect)]
3737
impl JsNostrConnect {
3838
/// Construct Nostr Connect client
39-
#[wasm_bindgen]
39+
#[wasm_bindgen(constructor)]
4040
pub fn new(
4141
uri: &JsNostrConnectURI,
4242
app_keys: &JsKeys,

0 commit comments

Comments
 (0)