Skip to content

Compilation issues with nargo 0.24.0 #18

Closed
@LogvinovLeon

Description

@LogvinovLeon

I'm still getting those issues when trying to compile with 0.24.0:

error: Types in a binary operation should match, but found u64 and Field
    ┌─ /Users/leonidlogvinov/nargo/github.com/aragonzkresearch/noir-trie-proofsv0.1.3/lib/src/lib.nr:240:31
    │
240 │     let safe_length = in_range*node.len() + (1-in_range)*node_length;
    │                               -
    │

error: Types in a binary operation should match, but found u64 and Field
    ┌─ /Users/leonidlogvinov/nargo/github.com/aragonzkresearch/noir-trie-proofsv0.1.3/lib/src/lib.nr:171:32
    │
171 │         for i in 0..(path.len()/MAX_TRIE_NODE_LENGTH - 1)
    │                                -
    │

error: Types in a binary operation should match, but found Field and u64
    ┌─ /Users/leonidlogvinov/nargo/github.com/aragonzkresearch/noir-trie-proofsv0.1.3/lib/src/lib.nr:209:24
    │
209 │         assert(key_ptr == 2*key.len()); // All of the key has been exhausted.
    │                        --
    │

error: Types in a binary operation should match, but found u64 and Field
   ┌─ /Users/leonidlogvinov/nargo/github.com/aragonzkresearch/noir-trie-proofsv0.1.3/lib/src/lib.nr:84:32
   │
84 │         for i in 0..(path.len()/MAX_TRIE_NODE_LENGTH - 1)
   │                                -
   │

error: Types in a binary operation should match, but found Field and u64
    ┌─ /Users/leonidlogvinov/nargo/github.com/aragonzkresearch/noir-trie-proofsv0.1.3/lib/src/lib.nr:123:24
    │
123 │         assert(key_ptr == 2*key.len()); // All of the key has been exhausted.
    │                        --
    │

Aborting due to 5 previous errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions