8000 [Bug]`[addresses]` values in `Move.toml` are not passed to dependencies Β· Issue #16612 Β· aptos-labs/aptos-core Β· GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Bug][addresses] values in Move.toml are not passed to dependencies #16612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hapeeeeee opened this issue May 13, 2025 · 1 comment
Open

[Bug][addresses] values in Move.toml are not passed to dependencies #16612

hapeeeeee opened this issue May 13, 2025 · 1 comment
Labels
bug Something isn't working compiler-v2 customer-bug move-package Package system issues move-tools

Comments

@hapeeeeee
Copy link

πŸ› Bug Report: [addresses] values in Move.toml are not passed to dependencies

Repo: https://github.com/banool/aptos-subdomain-manager
Command: aptos move compile
Aptos Cli Version: 6.2.0

βœ… Working Example:

Running the following command works:

aptos move compile --named-addresses addr=0x5,aptos_names=0x5,aptos_names_v2_1=0x5,router=0x5,aptos_names_admin=0x5,aptos_names_funds=0x5,router_signer=0x5

❌ Failing Example:

When I modify the move/Move.toml file and replace all _ placeholders in [addresses] with real addresses (0x5), and run:

aptos move compile

It fails with the following error:

{
  "Error": "Move compilation failed: Unresolved addresses found: [\nNamed address 'aptos_names_admin' in package 'aptos_names'\nNamed address 'aptos_names_funds' in package 'aptos_names'\nNamed address 'router_signer' in package 'aptos_names'\n]\nTo fix this, add an entry for each unresolved address to the [addresses] section of /.../Move.toml"
}

❓Expected Behavior:

The named addresses defined in the root Move.toml file should be passed down into the dependency packages like aptos_names. But currently, it seems that only --named-addresses from the CLI works correctly.

πŸ™ Request:

Please clarify whether:

  • This is the intended behavior.
  • [addresses] is supposed to propagate to transitive dependencies.
  • Or if all transitive dependencies must be declared explicitly for address resolution to work.
@hapeeeeee hapeeeeee added the bug Something isn't working label May 13, 2025
@vineethk vineethk added customer-bug move-package Package system issues labels May 22, 2025
@vineethk vineethk moved this from πŸ†• New to For Grabs in Move Language and Runtime May 22, 2025
@vineethk
Copy link
Contributor

cc @vgao1996

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compiler-v2 customer-bug move-package Package system issues move-tools
Projects
Status: For Grabs
Development

No branches or pull requests

3 participants
0