Skip to content

[Bug] Program name matching is incorrect #28944

@vicsn

Description

@vicsn

🐛 Bug Report

It seems my fix in #28933 was incomplete. A mismatch can exist not just between main.leo and program.json, but also between ??? and tests/*.leo

I recently got this error:

Error [ECMP0376004]: Program name in main.leo `transfer_public_expiry` should match the name in program.json `test_transfer_expiry`
    --> /Users/victorsintnicolaas/programs/leo-examples/transfer_expiry/tests/test_transfer_expiry.leo:4:9
     |
   4 | program transfer_public_expiry.aleo {
     |         ^^^^^^^^^^^^^^^^^^^^^^

Steps to Reproduce

Your Environment

leo commit 1b43943

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions