Skip to content

Document adding Aleo file dependencies to a Leo project.Β #549

@d0cd

Description

@d0cd

Here is a snippet from helping someone add token registry as a dependency.

Leo allows you to import Aleo programs directly.
What you can do is:
cd to your project root.
Create a file imports/token_registry.aleo
Copy the source code [here](https://explorer.provable.com/program/token_registry.aleo) and add
constructor:
    assert.eq edition 0u16;
4. Run leo add --local ./imports/token_registry.aleo token_registry. This will update your program.json
5. Run leo test (edited)

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