bug: maxCensusSize is always undefined
elboletaire opened this issue · 1 comments
elboletaire commented
Describe the bug
PublishedElection has a maxCensusSize
getter that should return the information received via census.maxCensusSize
field in the API, but it's always undefined.
To Reproduce
Grab any election information, and try to access the value via election.maxCensusSize
Current behavior
Returns undefined
Expected behavior
Should return the expected maxCensusSize value the API is properly returning.
Additional context
elboletaire commented
Looks like the issue is that it is being expected via params.maxCensusSize
, but when building it in the client we're not passing the expected maxCensusSize
param. Trace:
- Election's maxCensusSize definition:
vocdoni-sdk/src/types/election/election.ts
Line 189 in 6b8347e
- PublishedElection passing to super:
- Client creating PublishedElection (here's where's missing):
Lines 513 to 562 in 6b8347e