From 46c261e474aede737019a7b63e0871f9a808944b Mon Sep 17 00:00:00 2001 From: Manav Aggarwal Date: Tue, 12 Sep 2023 16:41:49 -0400 Subject: [PATCH] Update Namespaced shares fields use snake_case in JSON (#52) ## Overview Closes: #49 ## Checklist - [ ] 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 --- types/share/share.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/share/share.go b/types/share/share.go index ab00c80..542a20a 100644 --- a/types/share/share.go +++ b/types/share/share.go @@ -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.