Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-mysten committed Dec 13, 2024
1 parent 3fb9a89 commit 68faf41
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "Nonexistent"
version = "0.0.1"
published-at = "0xa74adee43809be6a74adee43809be675425e638a79067e575425e638a79067e5"
published-at = "0xabc123"
edition = "2024.beta"

[addresses]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@
// SPDX-License-Identifier: Apache-2.0

module examples::main {
use nonexistent::nonexistent;

public entry fun main() {
nonexistent::test();
}
public entry fun main() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,17 @@ impl Package {
resolving_table.define((pkg_id, *name), Some(addr))?;
continue;
}
// There is no lock file, but perhaps there is a `published-at` in the manifest.
else if let Some(published_at) = self
.source_package
.package
.custom_properties
.get(&Symbol::from("published-at"))
{
let addr = AccountAddress::from_str(published_at)?;
resolving_table.define((pkg_id, *name), Some(addr))?;
continue;
}
}
resolving_table.define((pkg_id, *name), *addr)?;
}
Expand Down

0 comments on commit 68faf41

Please sign in to comment.