This repository was archived by the owner on Feb 3, 2025. It is now read-only.
File tree 2 files changed +15
-3
lines changed 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -74,11 +74,11 @@ use crate::{
74
74
subscription:: MutinySubscriptionClient ,
75
75
} ;
76
76
use crate :: { nostr:: NostrManager , utils:: sleep} ;
77
+ use :: nostr:: nips:: nip47:: Method ;
77
78
use :: nostr:: nips:: nip57;
78
79
#[ cfg( target_arch = "wasm32" ) ]
79
80
use :: nostr:: prelude:: rand:: rngs:: OsRng ;
80
81
use :: nostr:: prelude:: ZapRequestData ;
81
- use :: nostr:: nips:: nip47:: Method ;
82
82
use :: nostr:: { EventBuilder , EventId , JsonUtil , Kind } ;
83
83
#[ cfg( target_arch = "wasm32" ) ]
84
84
use :: nostr:: { Keys , Tag } ;
Original file line number Diff line number Diff line change @@ -1406,7 +1406,13 @@ impl MutinyWallet {
1406
1406
commands : Option < Vec < String > > ,
1407
1407
) -> Result < models:: NwcProfile , MutinyJsError > {
1408
1408
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
+ ] ,
1410
1416
Some ( strs) => strs
1411
1417
. into_iter ( )
1412
1418
. map ( |s| Method :: from_str ( & s) )
@@ -1437,7 +1443,13 @@ impl MutinyWallet {
1437
1443
commands : Option < Vec < String > > ,
1438
1444
) -> Result < models:: NwcProfile , MutinyJsError > {
1439
1445
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
+ ] ,
1441
1453
Some ( strs) => strs
1442
1454
. into_iter ( )
1443
1455
. map ( |s| Method :: from_str ( & s) )
You can’t perform that action at this time.
0 commit comments