Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zekun Wang committed Oct 10, 2024
1 parent 5df1201 commit 9a8f9e1
Showing 1 changed file with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,18 +158,15 @@ impl OnDiskCompiledPackage {
}
let mut bytecode_deps = vec![];
for dep_name in self.package.bytecode_deps.iter().copied() {
let addr = self
.package
.compiled_package_info
.address_alias_instantiation
.get(&dep_name)
.ok_or_else(|| {
anyhow::anyhow!(
"Dependency {} not found in address alias instantiation",
dep_name
)
})?;
bytecode_deps.push((dep_name, NumericalAddress::from_account_address(*addr)));
let bytecode_paths = self.get_compiled_units_paths(dep_name)?;
let mut addrs = BTreeSet::new();
for bytecode_path in bytecode_paths {
let addr = get_module_addr(dep_name, bytecode_path.as_str())?;
addrs.insert(addr);

Check warning on line 165 in third_party/move/tools/move-package/src/compilation/compiled_package.rs

View check run for this annotation

Codecov / codecov/patch

third_party/move/tools/move-package/src/compilation/compiled_package.rs#L159-L165

Added lines #L159 - L165 were not covered by tests
}
for addr in addrs {
bytecode_deps.push((dep_name, addr));
}

Check warning on line 169 in third_party/move/tools/move-package/src/compilation/compiled_package.rs

View check run for this annotation

Codecov / codecov/patch

third_party/move/tools/move-package/src/compilation/compiled_package.rs#L167-L169

Added lines #L167 - L169 were not covered by tests
}

let docs_path = self
Expand Down

0 comments on commit 9a8f9e1

Please sign in to comment.