Skip to content

Commit 16323d2

Browse files
Mohammad Fawazclaude
andcommitted
fix(abi): handle imports in leo abi (#29437)
`leo abi` on a `.aleo` file that declares imports now loads each dependency from a sibling `imports/` directory (or `--imports-dir`) before disassembling. With `-o DIR`, every ABI (main and deps) is written to `<DIR>/<name>.abi.json`. Network builtins like `credits.aleo` are picked up from the snarkVM `Process` and don't need to be on disk. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent b48fbfa commit 16323d2

12 files changed

Lines changed: 737 additions & 31 deletions

File tree

crates/abi/src/aleo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ mod tests {
177177

178178
const SIMPLE_ALEO: &str = include_str!("../../../tests/tests/cli/test_abi_from_aleo/contents/simple.aleo");
179179
const SIMPLE_ABI: &str =
180-
include_str!("../../../tests/expectations/cli/test_abi_from_aleo/contents/simple.abi.json");
180+
include_str!("../../../tests/expectations/cli/test_abi_from_aleo/contents/simple_out/simple.aleo.abi.json");
181181

182182
#[test]
183183
fn generate_from_bytecode_matches_existing_cli_fixture() {

0 commit comments

Comments
 (0)