everything takes Request, returns Response; expect DeliverTx/CheckTx/Commit

This commit is contained in:
Ethan Buchman
2017-11-27 19:04:21 +00:00
parent 67d2a5f66d
commit c7f54fb56c
15 changed files with 174 additions and 291 deletions

View File

@ -355,12 +355,13 @@ func cmdInfo(cmd *cobra.Command, args []string) error {
// Set an option on the application
func cmdSetOption(cmd *cobra.Command, args []string) error {
resLog, err := client.SetOptionSync(args[0], args[1])
key, val := args[0], args[1]
res, err := client.SetOptionSync(types.RequestSetOption{key, val})
if err != nil {
return err
}
printResponse(cmd, args, response{
Log: resLog,
Log: res.Log,
})
return nil
}