Rename to Println

This commit is contained in:
Aleksandr Bezobchuk
2020-03-25 15:17:12 -04:00
parent 6a33b424a6
commit 75412d00f8
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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