Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

Running into type Field cannot be used in for loop error #1

Open
mw2000 opened this issue Oct 9, 2024 · 0 comments · May be fixed by #2
Open

Running into type Field cannot be used in for loop error #1

mw2000 opened this issue Oct 9, 2024 · 0 comments · May be fixed by #2

Comments

@mw2000
Copy link

mw2000 commented Oct 9, 2024

I was trying to use this package and ran into the following error. I'm using compiler version 0.33.0. I'm using the v0.0.2 tag.

error: The type Field cannot be used in a for loop
   ┌─ /Users/mihir/nargo/github.com/KumaCrypto/mimc_sponge_noirv0.0.2/src/lib.nr:30:14
   │
30 │     for i in 0..nRounds - 1 {
   │              --------------
   │

I believe I have a fix for this and will PR it here.

@mw2000 mw2000 linked a pull request Oct 9, 2024 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant