From 82937c7d1fcb582ec5733467739dc8f49c936e36 Mon Sep 17 00:00:00 2001 From: Ingar Shu Date: Wed, 11 Sep 2019 10:42:11 -0700 Subject: [PATCH] Return a SignedResponse from the `client query-storage-deal` command (#3389) --- commands/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/client.go b/commands/client.go index 44979eb64f..6cd8d787ed 100644 --- a/commands/client.go +++ b/commands/client.go @@ -190,9 +190,9 @@ format is specified with the --enc flag. return re.Emit(resp) }, - Type: storagedeal.Response{}, + Type: storagedeal.SignedResponse{}, Encoders: cmds.EncoderMap{ - cmds.Text: cmds.MakeTypedEncoder(func(req *cmds.Request, w io.Writer, resp *storagedeal.Response) error { + cmds.Text: cmds.MakeTypedEncoder(func(req *cmds.Request, w io.Writer, resp *storagedeal.SignedResponse) error { fmt.Fprintf(w, "Status: %s\n", resp.State.String()) // nolint: errcheck fmt.Fprintf(w, "Message: %s\n", resp.Message) // nolint: errcheck return nil