Skip to content

Commit

Permalink
indexer: GetEnvelope now includes VoterID in returned envelope
Browse files Browse the repository at this point in the history
Until now, the returned envelope was missing this field,
causing the endpoint `GET /votes/{voteId}` to return a nil VoterID
  • Loading branch information
altergui authored and p4u committed Jul 5, 2023
1 parent 67066b2 commit afa3d8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vochain/indexer/vote.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit afa3d8c

Please sign in to comment.