diff --git a/client/context/context.go b/client/context/context.go index 4827f68e0f..fb1708aed1 100644 --- a/client/context/context.go +++ b/client/context/context.go @@ -240,10 +240,10 @@ func (ctx CLIContext) WithBroadcastMode(mode string) CLIContext { return ctx } -// Print outputs toPrint to the ctx.Output based on ctx.OutputFormat which is +// Println outputs toPrint to the ctx.Output based on ctx.OutputFormat which is // either text or json. If text, toPrint will be YAML encoded. Otherwise, toPrint // will be JSON encoded using ctx.Marshaler. An error is returned upon failure. -func (ctx CLIContext) Print(toPrint interface{}) error { +func (ctx CLIContext) Println(toPrint interface{}) error { var ( out []byte err error diff --git a/client/tx/tx.go b/client/tx/tx.go index 593f13a2a0..7088a0bfda 100644 --- a/client/tx/tx.go +++ b/client/tx/tx.go @@ -85,7 +85,7 @@ func GenerateTx(ctx context.CLIContext, txf Factory, msgs ...sdk.Msg) error { return err } - return ctx.Print(tx) + return ctx.Println(tx) } // BroadcastTx attempts to generate, sign and broadcast a transaction with the @@ -143,7 +143,7 @@ func BroadcastTx(ctx context.CLIContext, txf Factory, msgs ...sdk.Msg) error { return err } - return ctx.Print(res) + return ctx.Println(res) } // WriteGeneratedTxResponse writes a generated unsigned transaction to the