• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vocdoni / saas-backend / 29497476278
62%

Build:
DEFAULT BRANCH: main
Ran 16 Jul 2026 12:24PM UTC
Jobs 1
Files 125
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Jul 2026 12:15PM UTC coverage: 62.167% (+0.002%) from 62.165%
29497476278

push

github

web-flow
fix(processes): serialize org address as internal.HexBytes (bare hex) (#579)

* fix(processes): serialize org address as internal.HexBytes (bare hex)

The /processes API typed orgAddress as common.Address, which JSON-marshals to a
0x-prefixed EIP-55-checksummed string — inconsistent with upstreamId (and the
other hex ids in these types), which use internal.HexBytes (bare lowercase hex).
Switch CreateVotingProcessRequest.OrgAddress and VotingProcessResponse.OrgAddress
to internal.HexBytes for a consistent API.

- Response: VotingProcessResponseFromDB converts the db common.Address via .Bytes().
- Request: createVotingProcessHandler validates len == common.AddressLength
  (HexBytes, unlike common.Address, doesn't enforce a 20-byte length on decode)
  and converts once to common.Address for the db/auth/subscription calls.
- Inputs stay compatible: HexBytes.UnmarshalJSON strips an optional 0x prefix, so
  clients may still send "0x…". Only the response format changes to bare hex.

Scope is limited to what #571 introduced; legacy /process and census types keep
common.Address.

* chore(processes): address review feedback

- reject the all-zero org address with 400 (the length-only check let it
  through to the role check, returning 401 and changing prior behavior).
- use a full 20-byte (40-hex) orgAddress swagger example instead of the
  4-byte "deadbeef" on the request and response types.
- add TestVotingProcessOrgAddressWireFormat: inspects the raw HTTP body and
  asserts orgAddress serializes as bare lowercase hex (no 0x / no checksum),
  which struct-parsing tests can't catch.

8 of 9 new or added lines in 2 files covered. (88.89%)

11494 of 18489 relevant lines covered (62.17%)

44.92 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
60.93
0.09% api/processes.go
Jobs
ID Job ID Ran Files Coverage
1 29497476278.1 16 Jul 2026 12:24PM UTC 125
62.17
GitHub Action Run
Source Files on build 29497476278
  • Tree
  • List 125
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 53ba3377 on github
  • Prev Build on main (#29398189696)
  • Next Build on main (#29747082380)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc