Skip to content

Commit

Permalink
cli q compute tx: added parsed input as json
Browse files Browse the repository at this point in the history
  • Loading branch information
assafmo committed Sep 17, 2020
1 parent 824b73b commit 241aca2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x/compute/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ func GetQueryDecryptTxCmd(cdc *amino.Codec) *cobra.Command {

var answer struct {
Type string `json:"type"`
Input string `json:"input"`
RawInput string `json:"raw_input"`
Input json.RawMessage `json:"input"`
OutputData string `json:"output_data"`
OutputDataAsString string `json:"output_data_as_string"`
OutputLogs []sdk.StringEvent `json:"output_log"`
Expand Down Expand Up @@ -346,7 +347,8 @@ func GetQueryDecryptTxCmd(cdc *amino.Codec) *cobra.Command {
}
}

answer.Input = string(plaintextInput)
answer.RawInput = string(plaintextInput)
answer.Input = []byte(plaintextInput[64:])

// decrypt data
if answer.Type == "execute" {
Expand Down

0 comments on commit 241aca2

Please sign in to comment.