diff --git a/bindings/single_test.go b/bindings/single_test.go index a262a40738afe4ce73fc565ddaf259663f9d3a2e..c5424809add94e375336da1badd3a1a00696c36e 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 8a19f48211d437d4343b9b4c38b0f170deb82630..7504992f423a409b8c9e90aa97dcdbee5ce1d66c 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...), }