File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
ironfish-cli/src/commands/wallet Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,11 @@ export class AccountsCommand extends IronfishCommand {
25
25
26
26
const response = await client . wallet . getAccountsStatus ( )
27
27
28
+ if ( response . content . locked ) {
29
+ this . log ( 'Your wallet is locked. Unlock the wallet to access your accounts' )
30
+ this . exit ( 0 )
31
+ }
32
+
28
33
if ( response . content . accounts . length === 0 ) {
29
34
this . log ( 'you have no accounts' )
30
35
return [ ]
Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ export class WhichCommand extends IronfishCommand {
25
25
26
26
const client = await this . connectRpc ( )
27
27
28
+ const response = await client . wallet . getAccountsStatus ( )
29
+ if ( response . content . locked ) {
30
+ this . log ( 'Your wallet is locked. Unlock the wallet to access your accounts' )
31
+ this . exit ( 0 )
32
+ }
33
+
28
34
const {
29
35
content : {
30
36
accounts : [ accountName ] ,
You can’t perform that action at this time.
0 commit comments