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

Commit

Permalink
Default to all commands supported
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Mar 18, 2024
1 parent 3fa0086 commit 18afeda
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions mutiny-wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,13 @@ impl MutinyWallet {
commands: Option<Vec<String>>,
) -> Result<models::NwcProfile, MutinyJsError> {
let commands = match commands {
None => vec![Method::PayInvoice],
None => vec![
Method::PayInvoice,
Method::GetInfo,
Method::GetBalance,
Method::LookupInvoice,
Method::MakeInvoice,
],
Some(strs) => strs
.into_iter()
.map(|s| Method::from_str(&s))
Expand Down Expand Up @@ -1437,7 +1443,13 @@ impl MutinyWallet {
commands: Option<Vec<String>>,
) -> Result<models::NwcProfile, MutinyJsError> {
let commands = match commands {
None => vec![Method::PayInvoice],
None => vec![
Method::PayInvoice,
Method::GetInfo,
Method::GetBalance,
Method::LookupInvoice,
Method::MakeInvoice,
],
Some(strs) => strs
.into_iter()
.map(|s| Method::from_str(&s))
Expand Down

0 comments on commit 18afeda

Please sign in to comment.