@@ -23,22 +23,18 @@ func TxSignExec(clientCtx client.Context, from fmt.Stringer, filename string, ex
23
23
filename ,
24
24
}
25
25
26
- args = append (args , extraArgs ... )
27
-
28
26
cmd := cli .GetSignCommand ()
29
27
tmcli .PrepareBaseCmd (cmd , "" , "" )
30
28
31
- return clitestutil .ExecTestCLICmd (clientCtx , cmd , args )
29
+ return clitestutil .ExecTestCLICmd (clientCtx , cmd , append ( args , extraArgs ... ) )
32
30
}
33
31
34
32
func TxBroadcastExec (clientCtx client.Context , filename string , extraArgs ... string ) (testutil.BufferWriter , error ) {
35
33
args := []string {
36
34
filename ,
37
35
}
38
36
39
- args = append (args , extraArgs ... )
40
-
41
- return clitestutil .ExecTestCLICmd (clientCtx , cli .GetBroadcastCommand (), args )
37
+ return clitestutil .ExecTestCLICmd (clientCtx , cli .GetBroadcastCommand (), append (args , extraArgs ... ))
42
38
}
43
39
44
40
func TxEncodeExec (clientCtx client.Context , filename string , extraArgs ... string ) (testutil.BufferWriter , error ) {
@@ -47,9 +43,7 @@ func TxEncodeExec(clientCtx client.Context, filename string, extraArgs ...string
47
43
filename ,
48
44
}
49
45
50
- args = append (args , extraArgs ... )
51
-
52
- return clitestutil .ExecTestCLICmd (clientCtx , cli .GetEncodeCommand (), args )
46
+ return clitestutil .ExecTestCLICmd (clientCtx , cli .GetEncodeCommand (), append (args , extraArgs ... ))
53
47
}
54
48
55
49
func TxValidateSignaturesExec (clientCtx client.Context , filename string ) (testutil.BufferWriter , error ) {
@@ -70,9 +64,7 @@ func TxMultiSignExec(clientCtx client.Context, from string, filename string, ext
70
64
from ,
71
65
}
72
66
73
- args = append (args , extraArgs ... )
74
-
75
- return clitestutil .ExecTestCLICmd (clientCtx , cli .GetMultiSignCommand (), args )
67
+ return clitestutil .ExecTestCLICmd (clientCtx , cli .GetMultiSignCommand (), append (args , extraArgs ... ))
76
68
}
77
69
78
70
func TxSignBatchExec (clientCtx client.Context , from fmt.Stringer , filename string , extraArgs ... string ) (testutil.BufferWriter , error ) {
@@ -82,9 +74,7 @@ func TxSignBatchExec(clientCtx client.Context, from fmt.Stringer, filename strin
82
74
filename ,
83
75
}
84
76
85
- args = append (args , extraArgs ... )
86
-
87
- return clitestutil .ExecTestCLICmd (clientCtx , cli .GetSignBatchCommand (), args )
77
+ return clitestutil .ExecTestCLICmd (clientCtx , cli .GetSignBatchCommand (), append (args , extraArgs ... ))
88
78
}
89
79
90
80
func TxDecodeExec (clientCtx client.Context , encodedTx string , extraArgs ... string ) (testutil.BufferWriter , error ) {
@@ -93,9 +83,13 @@ func TxDecodeExec(clientCtx client.Context, encodedTx string, extraArgs ...strin
93
83
encodedTx ,
94
84
}
95
85
96
- args = append (args , extraArgs ... )
86
+ return clitestutil .ExecTestCLICmd (clientCtx , cli .GetDecodeCommand (), append (args , extraArgs ... ))
87
+ }
88
+
89
+ func QueryAccountExec (clientCtx client.Context , address fmt.Stringer , extraArgs ... string ) (testutil.BufferWriter , error ) {
90
+ args := []string {address .String (), fmt .Sprintf ("--%s=json" , tmcli .OutputFlag )}
97
91
98
- return clitestutil .ExecTestCLICmd (clientCtx , cli .GetDecodeCommand (), args )
92
+ return clitestutil .ExecTestCLICmd (clientCtx , cli .GetAccountCmd (), append ( args , extraArgs ... ) )
99
93
}
100
94
101
95
// DONTCOVER
0 commit comments