Skip to content

Commit 5daf24b

Browse files
committed
js(nostr-sdk): fix send_event_builder js_name
1 parent a5bf03f commit 5daf24b

File tree

1 file changed

+2
-2
lines changed
  • bindings/nostr-sdk-js/src/client

1 file changed

+2
-2
lines changed

bindings/nostr-sdk-js/src/client/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl JsClient {
195195
/// Take an [`EventBuilder`], sign it by using the [`ClientSigner`] and broadcast to all relays.
196196
///
197197
/// Rise an error if the [`ClientSigner`] is not set.
198-
#[wasm_bindgen(js_name = sendEvent)]
198+
#[wasm_bindgen(js_name = sendEventBuilder)]
199199
pub async fn send_event_builder(&self, builder: &JsEventBuilder) -> Result<JsEventId> {
200200
self.inner
201201
.send_event_builder(builder.deref().clone())
@@ -207,7 +207,7 @@ impl JsClient {
207207
/// Take an [`EventBuilder`], sign it by using the [`ClientSigner`] and broadcast to specific relays.
208208
///
209209
/// Rise an error if the [`ClientSigner`] is not set.
210-
#[wasm_bindgen(js_name = sendEventTo)]
210+
#[wasm_bindgen(js_name = sendEventBuilderTo)]
211211
pub async fn send_event_builder_to(
212212
&self,
213213
url: String,

0 commit comments

Comments
 (0)