Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit 3168e86

Browse files
committed
Default to all commands supported
1 parent 3fa0086 commit 3168e86

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

mutiny-core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ use crate::{
7474
subscription::MutinySubscriptionClient,
7575
};
7676
use crate::{nostr::NostrManager, utils::sleep};
77+
use ::nostr::nips::nip47::Method;
7778
use ::nostr::nips::nip57;
7879
#[cfg(target_arch = "wasm32")]
7980
use ::nostr::prelude::rand::rngs::OsRng;
8081
use ::nostr::prelude::ZapRequestData;
81-
use ::nostr::nips::nip47::Method;
8282
use ::nostr::{EventBuilder, EventId, JsonUtil, Kind};
8383
#[cfg(target_arch = "wasm32")]
8484
use ::nostr::{Keys, Tag};

mutiny-wasm/src/lib.rs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,13 @@ impl MutinyWallet {
14061406
commands: Option<Vec<String>>,
14071407
) -> Result<models::NwcProfile, MutinyJsError> {
14081408
let commands = match commands {
1409-
None => vec![Method::PayInvoice],
1409+
None => vec![
1410+
Method::PayInvoice,
1411+
Method::GetInfo,
1412+
Method::GetBalance,
1413+
Method::LookupInvoice,
1414+
Method::MakeInvoice,
1415+
],
14101416
Some(strs) => strs
14111417
.into_iter()
14121418
.map(|s| Method::from_str(&s))
@@ -1437,7 +1443,13 @@ impl MutinyWallet {
14371443
commands: Option<Vec<String>>,
14381444
) -> Result<models::NwcProfile, MutinyJsError> {
14391445
let commands = match commands {
1440-
None => vec![Method::PayInvoice],
1446+
None => vec![
1447+
Method::PayInvoice,
1448+
Method::GetInfo,
1449+
Method::GetBalance,
1450+
Method::LookupInvoice,
1451+
Method::MakeInvoice,
1452+
],
14411453
Some(strs) => strs
14421454
.into_iter()
14431455
.map(|s| Method::from_str(&s))

0 commit comments

Comments
 (0)