Require proto.Message in client.Context.PrintOutput (#6999)

* Enable proto JSON json for cli tx & query

* WIP on tests

* Test fixes, cleanup

* Cleanup

* Address review comments

* Update client/context.go

Co-authored-by: Anil Kumar Kammari <anil@vitwit.com>

* Fixes

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Anil Kumar Kammari <anil@vitwit.com>
This commit is contained in:
Aaron Craelius
2020-08-11 03:19:49 -04:00
committed by GitHub
co-authored by Anil Kumar Kammari Federico Kunze
parent 20c80cfd44
commit 7de8ef75b3
19 changed files with 95 additions and 99 deletions
+6 -6
View File
@@ -80,7 +80,7 @@ $ %s query staking validator cosmosvaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhff
return err
}
return clientCtx.PrintOutput(res.Validator)
return clientCtx.PrintOutput(&res.Validator)
},
}
@@ -126,7 +126,7 @@ $ %s query staking validators
validators = append(validators, validator)
}
return clientCtx.PrintOutput(validators)
return clientCtx.PrintOutputLegacy(validators)
},
}
@@ -452,7 +452,7 @@ $ %s query staking unbonding-delegation cosmos1gghjut3ccd8ay0zduzj64hwre2fxs9ld7
return err
}
return clientCtx.PrintOutput(res.Unbond)
return clientCtx.PrintOutput(&res.Unbond)
},
}
@@ -567,7 +567,7 @@ $ %s query staking redelegation cosmos1gghjut3ccd8ay0zduzj64hwre2fxs9ld75ru9p co
return err
}
return clientCtx.PrintOutput(res.RedelegationResponses)
return clientCtx.PrintOutput(res)
},
}
@@ -705,7 +705,7 @@ $ %s query staking pool
return err
}
return clientCtx.PrintOutput(res.Pool)
return clientCtx.PrintOutput(&res.Pool)
},
}
@@ -743,7 +743,7 @@ $ %s query staking params
return err
}
return clientCtx.PrintOutput(res.Params)
return clientCtx.PrintOutput(&res.Params)
},
}