From 75412d00f87400032384b7c2c90c8c58980034e3 Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Wed, 25 Mar 2020 15:17:12 -0400 Subject: [PATCH] Rename to Println --- client/context/context.go | 4 ++-- client/tx/tx.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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