Skip to content

Commit

Permalink
fix(cosmos): don't force the output format to JSON
Browse files Browse the repository at this point in the history
The new Cosmos-SDK 0.43.0 adds an `-ojson` flag to the `tx`
subcommands, so we can both specify it when we need and don't have
to force users to look at JSON when the default is clearer.
  • Loading branch information
michaelfig committed Aug 13, 2021
1 parent 29137dd commit 671b93d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions golang/cosmos/daemon/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ func NewRootCmd(sender Sender) (*cobra.Command, params.EncodingConfig) {
return err
}

// FIXME: Need this for compatibility with Agoric's use of the client
initClientCtx.OutputFormat = "json"

if err := client.SetCmdClientContextHandler(initClientCtx, cmd); err != nil {
return err
}
Expand Down
2 changes: 2 additions & 0 deletions packages/agoric-cli/lib/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {
'tx',
'swingset',
'provision-one',
'-ojson',
'--keyring-backend=test',
'--from=provision',
'--gas=auto',
Expand All @@ -498,6 +499,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {
'tx',
'bank',
'send',
'-ojson',
'--keyring-backend=test',
'--gas=auto',
'--gas-adjustment=1.2',
Expand Down
1 change: 1 addition & 0 deletions packages/solo/src/chain-cosmos-sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ ${chainID} chain does not yet know of address ${clientAddr}${adviseEgress(
'--gas-adjustment=1.3',
'--from=ag-solo',
'--yes',
'-ojson',
);

// Use the feeAccount for any fees.
Expand Down

0 comments on commit 671b93d

Please sign in to comment.