-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conformance failure: Spec reports that pool is not registered for voting #642
Comments
I think this is most likely either a translation bug or a bug in |
Noted @WhatisRT, thanks! I have added the |
This is a bug in computeProof = case lookupActionId pparams (proj₁ voter) gid s ,′ isRegistered? (proj₁ Γ) voter of λ where
(yes p , yes p') → case Any↔ .from p of λ where
(_ , mem , refl , cV) → success (_ , GOV-Vote (∈-fromList .to mem , cV , p'))
(yes _ , no ¬p) → failure (genErrors ¬p)
(no ¬p , _) → failure ( {!genErrors ¬p !}) and this is what I got
As you can see, it gives a nonsensical error, it should be something like |
It turns out that this is unrelated to the existential after all. Here's a minimized reproducer: open import Prelude
test : String
test = case (0 ≟ 1) ,′ (1 ≟ 1) of λ where
(yes p , _) → ""
(no ¬p , _) → {!genErrors ¬p!} Normalizing the hole gives |
Ah, the documentation I wrote helpfully immediately reveals the bug:
So So I suppose we could either do some annoying restructuring, or we add a simple wrapper that always generates a |
Two tests fail with:
In these tests, both CCs and an SPO submit their votes, but failure only occurs for the SPO vote submission.
To rerun use:
--match "/proposals of same priority are enacted in order of submission/"
--match "/only the first action of a transaction gets enacted/"
The text was updated successfully, but these errors were encountered: