Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.
This repository was 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

@mw2000

Description

@mw2000

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions