File tree Expand file tree Collapse file tree 5 files changed +11
-10
lines changed
ironfish-cli/src/commands/wallet Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export class CreateCommand extends IronfishCommand {
11
11
static description = `Create a new account for sending and receiving coins`
12
12
13
13
static args = {
14
- account : Args . string ( {
14
+ name : Args . string ( {
15
15
required : false ,
16
16
description : 'Name of the account' ,
17
17
} ) ,
@@ -23,7 +23,7 @@ export class CreateCommand extends IronfishCommand {
23
23
24
24
async start ( ) : Promise < void > {
25
25
const { args } = await this . parse ( CreateCommand )
26
- let name = args . account
26
+ let name = args . name
27
27
28
28
if ( ! name ) {
29
29
name = await inputPrompt ( 'Enter the name of the account' , true )
Original file line number Diff line number Diff line change @@ -36,8 +36,9 @@ export class TransactionsCommand extends IronfishCommand {
36
36
char : 'a' ,
37
37
description : 'Name of the account to get transactions for' ,
38
38
} ) ,
39
- hash : Flags . string ( {
39
+ transaction : Flags . string ( {
40
40
char : 't' ,
41
+ aliases : [ 'hash' ] ,
41
42
description : 'Transaction hash to get details for' ,
42
43
} ) ,
43
44
sequence : Flags . integer ( {
@@ -77,7 +78,7 @@ export class TransactionsCommand extends IronfishCommand {
77
78
78
79
const response = client . wallet . getAccountTransactionsStream ( {
79
80
account,
80
- hash : flags . hash ,
81
+ hash : flags . transaction ,
81
82
sequence : flags . sequence ,
82
83
limit : flags . limit ,
83
84
offset : flags . offset ,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export class TransactionInfoCommand extends IronfishCommand {
27
27
static hiddenAliases = [ 'wallet:transaction' ]
28
28
29
29
static args = {
30
- hash : Args . string ( {
30
+ transaction : Args . string ( {
31
31
required : true ,
32
32
description : 'Hash of the transaction' ,
33
33
} ) ,
@@ -47,7 +47,7 @@ export class TransactionInfoCommand extends IronfishCommand {
47
47
48
48
async start ( ) : Promise < void > {
49
49
const { flags, args } = await this . parse ( TransactionInfoCommand )
50
- const { hash } = args
50
+ const { transaction : hash } = args
51
51
// TODO: remove account arg
52
52
const account = flags . account ? flags . account : args . account
53
53
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export class TransactionsPostCommand extends IronfishCommand {
22
22
static hiddenAliases = [ 'wallet:post' ]
23
23
24
24
static args = {
25
- transaction : Args . string ( {
25
+ raw_transaction : Args . string ( {
26
26
description : 'The raw transaction in hex encoding' ,
27
27
} ) ,
28
28
}
@@ -48,7 +48,7 @@ export class TransactionsPostCommand extends IronfishCommand {
48
48
49
49
async start ( ) : Promise < void > {
50
50
const { flags, args } = await this . parse ( TransactionsPostCommand )
51
- let transaction = args . transaction
51
+ let transaction = args . raw_transaction
52
52
53
53
if ( ! transaction ) {
54
54
transaction = await longPrompt ( 'Enter the raw transaction in hex encoding' , {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export class TransactionsWatchCommand extends IronfishCommand {
11
11
static hiddenAliases = [ 'wallet:transaction:watch' ]
12
12
13
13
static args = {
14
- hash : Args . string ( {
14
+ transaction : Args . string ( {
15
15
required : true ,
16
16
description : 'Hash of the transaction' ,
17
17
} ) ,
@@ -35,7 +35,7 @@ export class TransactionsWatchCommand extends IronfishCommand {
35
35
36
36
async start ( ) : Promise < void > {
37
37
const { flags, args } = await this . parse ( TransactionsWatchCommand )
38
- const { hash } = args
38
+ const { transaction : hash } = args
39
39
// TODO: remove account arg
40
40
const account = flags . account ? flags . account : args . account
41
41
You can’t perform that action at this time.
0 commit comments