Browse Source

Make flipStatus.ResultInfo and flipStatus.ErrorInfo pointers to easily check if they're nil

main
Sam 5 years ago
parent
commit
d962600f9c
  1. 4
      types.go

4
types.go

@ -254,8 +254,8 @@ type flipStatus struct { @@ -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"`

Loading…
Cancel
Save