Skip to content

fix: Apps.ZKVoting.Prover ignored test - #517

Merged
samuelburnham merged 3 commits into
mainfrom
sb/fix-zkvoting-commit-resolution
Jul 24, 2026
Merged

fix: Apps.ZKVoting.Prover ignored test#517
samuelburnham merged 3 commits into
mainfrom
sb/fix-zkvoting-commit-resolution

Conversation

@samuelburnham

@samuelburnham samuelburnham commented Jul 24, 2026

Copy link
Copy Markdown
Member

#509 split CompileEnv name resolution — nameToAddr became the authority consulted by lookupConstAddr, seeded in mkCompileEnv — but commitDef was not updated and kept registering commitments only in nameToNamed (the final named registry, not the resolution map). Referencing a committed constant then failed with missingConstant, breaking Apps.ZKVoting.Prover. Also insert into nameToAddr so committed constants resolve.

Successful run: https://github.com/argumentcomputer/ix/actions/runs/30111995374/job/89543507174

@samuelburnham
samuelburnham force-pushed the sb/fix-zkvoting-commit-resolution branch from d0d4c4d to 933983b Compare July 24, 2026 17:10
@argumentcomputer argumentcomputer deleted a comment from argument-ci-bot Bot Jul 24, 2026
@samuelburnham samuelburnham changed the title Fix commitDef: register commitments in the nameToAddr resolution map fix: Apps.ZKVoting.Prover ignored test Jul 24, 2026
#509 split CompileEnv name resolution — nameToAddr became the authority
consulted by lookupConstAddr, seeded in mkCompileEnv — but commitDef was
not updated and kept registering commitments only in nameToNamed (the
final named registry, not the resolution map). Referencing a committed
constant then failed with `missingConstant`, breaking Apps.ZKVoting.Prover.
Also insert into nameToAddr so committed constants resolve.
@samuelburnham
samuelburnham force-pushed the sb/fix-zkvoting-commit-resolution branch from 933983b to fd55a48 Compare July 24, 2026 19:27
@samuelburnham
samuelburnham marked this pull request as ready for review July 24, 2026 19:28
@samuelburnham
samuelburnham enabled auto-merge (squash) July 24, 2026 19:28
@samuelburnham
samuelburnham merged commit 02ab0a4 into main Jul 24, 2026
9 checks passed
@samuelburnham
samuelburnham deleted the sb/fix-zkvoting-commit-resolution branch July 24, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants