Skip to content

Commit

Permalink
Update Namespaced shares fields use snake_case in JSON (#52)
Browse files Browse the repository at this point in the history
<!--
Please read and fill out this form before submitting your PR.

Please make sure you have reviewed our contributors guide before
submitting your
first PR.
-->

## Overview
Closes: #49 

<!-- 
Please provide an explanation of the PR, including the appropriate
context,
background, goal, and rationale. If there is an issue with this
information,
please provide a tl;dr and link the issue. 
-->

## Checklist

<!-- 
Please complete the checklist to ensure that the PR is ready to be
reviewed.

IMPORTANT:
PRs should be left in Draft until the below checklist is completed.
-->

- [ ] New and updated code has appropriate documentation
- [ ] New and updated code has new and/or updated testing
- [x] Required CI checks are passing
- [ ] Visual proof for any user facing features like CLI or
documentation updates
- [x] Linked issues closed with keywords
  • Loading branch information
Manav-Aggarwal committed Sep 12, 2023
1 parent a5d1911 commit 46c261e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/share/share.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ type Root = core.DataAvailabilityHeader

// NamespacedRow represents all shares with proofs within a specific namespace of a single EDS row.
type NamespacedRow struct {
Shares []Share
Proof *nmt.Proof
Shares []Share `json:"shares"`
Proof *nmt.Proof `json:"proof"`
}

// NamespacedShares represents all shares with proofs within a specific namespace of an EDS.
Expand Down

0 comments on commit 46c261e

Please sign in to comment.