-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
query txs does not output json #2628
Comments
iris query txs --events "message.sender=iaa13y0rlww8922m0lw5sedt6f9gcv5edczga9j4qc&transfer.recipient=iaa1jv703yqry42ea4fprmjeccwl6xnk5t4ylwh6gv" --page 1 --limit 1000 |
$ iris query txs --events "message.sender=iaa13y0rlww8922m0lw5sedt6f9gcv5edczga9j4qc&transfer.recipient=iaa1jv703yqry42ea4fprmjeccwl6xnk5t4ylwh6gv" --page 1 --limit 1000 --output json
Error: unknown flag: --output
Usage:
iris query txs [flags]
Flags:
--events string list of transaction events in the form of {eventType}.{eventAttribute}={value}
-h, --help help for txs
--keyring-backend string Select keyring's backend (os|file|kwallet|pass|test) (default "os")
--limit int Query number of transactions results per page returned (default 30)
-n, --node string Node to connect to (default "tcp://localhost:26657")
--page int Query a specific page of paginated results (default 1)
Global Flags:
--chain-id string The network chain ID
--home string directory for config and data (default "/home/ubuntu/.iris")
--log_format string The logging format (json|plain) (default "plain")
--log_level string The logging level (trace|debug|info|warn|error|fatal|panic) (default "info")
--trace print out full stack trace on errors |
@helder-moreira Thanks for your report! It's a bug and should fix in cosmos-sdk. |
Thanks 🙏 Not on cosmos-sdk though, I am working with several chains using cosmos-sdk and none of them has this issue. |
Because we have handled the output for token unit conversion if |
@helder-moreira Refer cosmos/cosmos-sdk#9540, we will fix it in the next cosmos-sdk upgrade. |
@dreamer-zq Can you confirm if this is fixed in v1.2 ? |
It has been fixed |
Describe the bug
Querying transactions does not output result in
JSON
. Not even whenlog_format
flag is specifically set tojson
.To Reproduce
Steps to reproduce the behavior:
Run:
Expected behavior
The expected output of the above command would be:
The text was updated successfully, but these errors were encountered: