From 4c88b6f25903d12fa68bdaea88761b1560514300 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Tue, 29 Mar 2022 11:16:54 +0900 Subject: [PATCH] fix: change the default value of the client output format in the config (#476) * fix: change the default output format into "" * docs: add a comment to provide more information about the override * docs: update CHANGELOG.md --- CHANGELOG.md | 1 + client/config/config.go | 2 +- client/config/toml.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 10bc105abe..5b5ad3db45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Bug Fixes * (x/wasm) [\#453](https://github.com/line/lbm-sdk/pull/453) modify wasm grpc query api path +* (client) [\#476](https://github.com/line/lbm-sdk/pull/476) change the default value of the client output format in the config ### Breaking Changes diff --git a/client/config/config.go b/client/config/config.go index 49ed35d78a..8020fd4670 100644 --- a/client/config/config.go +++ b/client/config/config.go @@ -12,7 +12,7 @@ import ( const ( chainID = "" keyringBackend = "os" - output = "text" + output = "" node = "tcp://localhost:26657" broadcastMode = "sync" ) diff --git a/client/config/toml.go b/client/config/toml.go index 0393a5b6ac..35b449d9db 100644 --- a/client/config/toml.go +++ b/client/config/toml.go @@ -20,7 +20,7 @@ const defaultConfigTemplate = `# This is a TOML config file. chain-id = "{{ .ChainID }}" # The keyring's backend, where the keys are stored (os|file|kwallet|pass|test|memory) keyring-backend = "{{ .KeyringBackend }}" -# CLI output format (text|json) +# CLI output format (text|json), it will override the default values of both query and tx output = "{{ .Output }}" # : to Tendermint RPC interface for this chain node = "{{ .Node }}"