From d962600f9c9adcef6c84a46f8864d854089acdd5 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 11 Sep 2019 17:41:12 -0400 Subject: [PATCH] Make flipStatus.ResultInfo and flipStatus.ErrorInfo pointers to easily check if they're nil --- types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types.go b/types.go index 53ad205..a393031 100644 --- a/types.go +++ b/types.go @@ -254,8 +254,8 @@ type flipStatus struct { CommitmentVisualization string `json:"commitmentVisualization"` RevealVisualization string `json:"revealVisualization"` Participants []participants `json:"participants"` - ResultInfo resultInfo `json:"resultInfo"` - ErrorInfo errorInfo `json:"errorInfo"` + ResultInfo *resultInfo `json:"resultInfo"` + ErrorInfo *errorInfo `json:"errorInfo"` } type result struct { Messages []messages `json:"messages,omitempty"`