File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
ironfish-cli/src/commands/wallet
ironfish/src/rpc/routes/wallet Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ export class AccountsCommand extends IronfishCommand {
44
44
header : 'Account' ,
45
45
minWidth : 11 ,
46
46
} ,
47
+ default : {
48
+ get : ( row ) => ( row . default ? chalk . green ( '✓' ) : '' ) ,
49
+ header : 'Default' ,
50
+ } ,
47
51
viewOnly : {
48
52
get : ( row ) => ( row . viewOnly ? chalk . green ( '✓' ) : '' ) ,
49
53
header : 'View Only' ,
@@ -73,7 +77,6 @@ export class AccountsCommand extends IronfishCommand {
73
77
{
74
78
...flags ,
75
79
printLine : this . log . bind ( this ) ,
76
- 'no-header' : flags [ 'no-header' ] ?? ! flags . extended ,
77
80
} ,
78
81
)
79
82
Original file line number Diff line number Diff line change @@ -170,5 +170,6 @@ export async function serializeRpcAccountStatus(
170
170
: null ,
171
171
scanningEnabled : account . scanningEnabled ,
172
172
viewOnly : ! account . isSpendingAccount ( ) ,
173
+ default : wallet . getDefaultAccount ( ) ?. id === account . id ,
173
174
}
174
175
}
Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ export type RpcAccountStatus = {
172
172
} | null
173
173
scanningEnabled : boolean
174
174
viewOnly : boolean
175
+ default : boolean
175
176
}
176
177
177
178
export const RpcAccountStatusSchema : yup . ObjectSchema < RpcAccountStatus > = yup
@@ -188,5 +189,6 @@ export const RpcAccountStatusSchema: yup.ObjectSchema<RpcAccountStatus> = yup
188
189
. defined ( ) ,
189
190
scanningEnabled : yup . boolean ( ) . defined ( ) ,
190
191
viewOnly : yup . boolean ( ) . defined ( ) ,
192
+ default : yup . boolean ( ) . defined ( ) ,
191
193
} )
192
194
. defined ( )
You can’t perform that action at this time.
0 commit comments