From afa3d8ca1c8a0270473336f3e78de114b060937e Mon Sep 17 00:00:00 2001 From: Gui Iribarren Date: Wed, 5 Jul 2023 09:47:27 +0200 Subject: [PATCH] indexer: GetEnvelope now includes VoterID in returned envelope Until now, the returned envelope was missing this field, causing the endpoint `GET /votes/{voteId}` to return a nil VoterID --- vochain/indexer/vote.go | 1 + 1 file changed, 1 insertion(+) diff --git a/vochain/indexer/vote.go b/vochain/indexer/vote.go index 5cd23561a..02f0e0d47 100644 --- a/vochain/indexer/vote.go +++ b/vochain/indexer/vote.go @@ -41,6 +41,7 @@ func (idx *Indexer) GetEnvelope(nullifier []byte) (*indexertypes.EnvelopePackage OverwriteCount: uint32(voteRef.OverwriteCount), Date: voteRef.BlockTime, Meta: indexertypes.EnvelopeMetadata{ + VoterID: voteRef.VoterID.Address(), ProcessId: voteRef.ProcessID, Nullifier: nullifier, TxIndex: int32(voteRef.BlockIndex),