welcome icon indicating copy to clipboard operation
welcome copied to clipboard

Document adding Aleo file dependencies to a Leo project.

Open d0cd opened this issue 1 month ago • 0 comments

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)

d0cd avatar Dec 02 '25 19:12 d0cd