From c99a67953774488e022a677a3d33e2b8962d1c8a Mon Sep 17 00:00:00 2001
From: Jake Taylor <jake@elixxir.io>
Date: Wed, 10 Aug 2022 15:35:00 -0500
Subject: [PATCH] fix single-use json documentation

---
 bindings/single_test.go | 6 +++---
 bindings/ud.go          | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/bindings/single_test.go b/bindings/single_test.go
index a262a4073..c5424809a 100644
--- a/bindings/single_test.go
+++ b/bindings/single_test.go
@@ -36,7 +36,7 @@ func TestSingleUseJsonMarshals(t *testing.T) {
 	sendReport := SingleUseSendReport{
 		RoundsList:  rl,
 		EphID:       ephId.EphId.Int64(),
-		ReceptionID: ephId.Source.Marshal(),
+		ReceptionID: ephId.Source,
 	}
 	srm, err := json.Marshal(sendReport)
 	if err != nil {
@@ -48,7 +48,7 @@ func TestSingleUseJsonMarshals(t *testing.T) {
 	responseReport := SingleUseResponseReport{
 		RoundsList:  rl,
 		Payload:     payload,
-		ReceptionID: ephId.Source.Marshal(),
+		ReceptionID: ephId.Source,
 		EphID:       ephId.EphId.Int64(),
 		Err:         nil,
 	}
@@ -64,7 +64,7 @@ func TestSingleUseJsonMarshals(t *testing.T) {
 		Payload:     payload,
 		Partner:     rid,
 		EphID:       ephId.EphId.Int64(),
-		ReceptionID: ephId.Source.Marshal(),
+		ReceptionID: ephId.Source,
 	}
 	crm, err := json.Marshal(callbackReport)
 	if err != nil {
diff --git a/bindings/ud.go b/bindings/ud.go
index 8a19f4821..7504992f4 100644
--- a/bindings/ud.go
+++ b/bindings/ud.go
@@ -352,7 +352,7 @@ func LookupUD(e2eID int, udContact []byte, cb UdLookupCallback,
 
 	sr := SingleUseSendReport{
 		EphID:       eid.EphId.Int64(),
-		ReceptionID: eid.Source.Marshal(),
+		ReceptionID: eid.Source,
 		RoundsList:  makeRoundsList(rids...),
 	}
 
@@ -434,7 +434,7 @@ func SearchUD(e2eID int, udContact []byte, cb UdSearchCallback,
 
 	sr := SingleUseSendReport{
 		EphID:       eid.EphId.Int64(),
-		ReceptionID: eid.Source.Marshal(),
+		ReceptionID: eid.Source,
 		RoundsList:  makeRoundsList(rids...),
 	}
 
-- 
GitLab