File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
ironfish-cli/src/commands/wallet Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ export class RenameCommand extends IronfishCommand {
9
9
static description = 'rename the name of an account'
10
10
11
11
static args = {
12
- account : Args . string ( {
12
+ old_name : Args . string ( {
13
13
required : true ,
14
- description : 'Name of the account to rename' ,
14
+ description : 'Old account to rename' ,
15
15
} ) ,
16
- newName : Args . string ( {
16
+ new_name : Args . string ( {
17
17
required : true ,
18
- description : 'New name to assign to the account' ,
18
+ description : 'New name for the account' ,
19
19
} ) ,
20
20
}
21
21
@@ -25,10 +25,10 @@ export class RenameCommand extends IronfishCommand {
25
25
26
26
async start ( ) : Promise < void > {
27
27
const { args } = await this . parse ( RenameCommand )
28
- const { account, newName } = args
29
28
30
29
const client = await this . connectRpc ( )
31
- await client . wallet . renameAccount ( { account, newName } )
32
- this . log ( `Account ${ account } renamed to ${ newName } ` )
30
+
31
+ await client . wallet . renameAccount ( { account : args . old_name , newName : args . new_name } )
32
+ this . log ( `Account ${ args . old_name } renamed to ${ args . new_name } ` )
33
33
}
34
34
}
You can’t perform that action at this time.
0 commit comments