File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ func (t GovernanceProposal) Type() schema.Type {
1313
1414type GovernanceProposal struct {
1515 ID string `json:"id"`
16- Body string `json:"body"`
17- StartBlock string `json:"start_block"`
18- EndBlock string `json:"end_block"`
19- Options []string `json:"options"`
20- Link string `json:"link"`
16+ Body string `json:"body,omitempty "`
17+ StartBlock string `json:"start_block,omitempty "`
18+ EndBlock string `json:"end_block,omitempty "`
19+ Options []string `json:"options,omitempty "`
20+ Link string `json:"link,omitempty "`
2121}
2222
2323var _ Metadata = (* GovernanceVote )(nil )
@@ -33,8 +33,8 @@ var _ Metadata = (*GovernanceVoteAction)(nil)
3333
3434type GovernanceVote struct {
3535 Action GovernanceVoteAction `json:"action"`
36- Count uint64 `json:"count"`
37- Reason string `json:"reason"`
36+ Count uint64 `json:"count,omitempty "`
37+ Reason string `json:"reason,omitempty "`
3838 Proposal GovernanceProposal `json:"token"`
3939}
4040
You can’t perform that action at this time.
0 commit comments