Skip to content

Commit 2ab7c46

Browse files
authored
Change wallet:rename arg names (#5314)
1 parent 704d0ec commit 2ab7c46

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ironfish-cli/src/commands/wallet/rename.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ export class RenameCommand extends IronfishCommand {
99
static description = 'rename the name of an account'
1010

1111
static args = {
12-
account: Args.string({
12+
old_name: Args.string({
1313
required: true,
14-
description: 'Name of the account to rename',
14+
description: 'Old account to rename',
1515
}),
16-
newName: Args.string({
16+
new_name: Args.string({
1717
required: true,
18-
description: 'New name to assign to the account',
18+
description: 'New name for the account',
1919
}),
2020
}
2121

@@ -25,10 +25,10 @@ export class RenameCommand extends IronfishCommand {
2525

2626
async start(): Promise<void> {
2727
const { args } = await this.parse(RenameCommand)
28-
const { account, newName } = args
2928

3029
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}`)
3333
}
3434
}

0 commit comments

Comments
 (0)