Skip to content

Commit 443d110

Browse files
committed
fix signal tx command
1 parent 85422b4 commit 443d110

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x/feeds/client/cli/tx.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ func GetTxCmd() *cobra.Command {
5050
// GetTxCmdSubmitSignals creates a CLI command for submitting signals
5151
func GetTxCmdSubmitSignals() *cobra.Command {
5252
cmd := &cobra.Command{
53-
Use: "signal [signal_id1]:[power1] [signal_id2]:[power2] ...",
53+
Use: "signal [signal_id1],[power1] [signal_id2],[power2] ...",
5454
Short: "Signal signal ids and their powers",
5555
Args: cobra.MinimumNArgs(0),
5656
Long: strings.TrimSpace(
5757
fmt.Sprintf(
5858
`Signal signal ids and their power.
5959
Example:
60-
$ %s tx feeds signal BTC:1000000 --from mykey
60+
$ %s tx feeds signal BTC,1000000 --from mykey
6161
`,
6262
version.AppName,
6363
),
@@ -71,7 +71,7 @@ $ %s tx feeds signal BTC:1000000 --from mykey
7171
delegator := clientCtx.GetFromAddress()
7272
var signals []types.Signal
7373
for i, arg := range args {
74-
idAndPower := strings.SplitN(arg, ":", 2)
74+
idAndPower := strings.SplitN(arg, ",", 2)
7575
if len(idAndPower) != 2 {
7676
return fmt.Errorf("argument %d is not valid", i)
7777
}

0 commit comments

Comments
 (0)