How to add multiple contract addresses for same module in move.toml #773
Unanswered
ajaythampispericorn
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Discord user ID
ajayaptosdev
Describe your question in detail.
hi, i am trying to develop a governance for a project that i am working on. it is an rwa tokenization of properties. i have different modules for it, like marketplace, rental yield contract etc. each property is deployed as a contract and each property has a distinct rental yield contract. when i was trying to develop the governance where users can vote on proposals, i kept the logic that users who have staked property tokens will only be able to vote on proposals. the issue i am facing currently is that as each property has its own rental yield contract, and the amount staked is stored within the rental yield contract, i am unable to add multiple addresses to move.toml file to import and use in the governance module. can anyone help with this? how to add multiple contract addresses for rental yield and use that in the governance?
What error, if any, are you getting?
{
"Error": "Move compilation failed: Unable to resolve packages for package 'governance': While resolving dependency 'property_1_premier_yield' in package 'governance': Name of dependency declared in package 'property_1_premier_yield' does not match dependency's package name 'premier'"
}
What have you tried or looked at? Or how can we reproduce the error?
i tried adding addreses like this under dependencies
[dependencies]
AptosFramework = { git = "https://github.com/aptos-labs/aptos-core.git", rev = "aptos-cli-v6.2.0", subdir = "aptos-move/framework/aptos-framework" }
AptosStdlib = { git = "https://github.com/aptos-labs/aptos-core.git", rev = "aptos-cli-v6.2.0", subdir = "aptos-move/framework/aptos-stdlib" }
property_1_premier_yield = { local = "../rwa_yield", addr_subst = { "premier" = "property_1_premier_yield" } }
property_2_premier_yield = { local = "../rwa_yield", addr_subst = { "premier" = "property_2_premier_yield" } }
property_3_premier_yield = { local = "../rwa_yield", addr_subst = { "premier" = "property_3_premier_yield" } }
and added addresses under dev-dependencies
property_1_premier_yield = ""
property_2_premier_yield = ""
property_3_premier_yield = ""
Which operating system are you using?
Linux (Ubuntu, Fedora, Windows WSL, etc.)
Which SDK or tool are you using? (if any)
Aptos CLI
Describe your environment or tooling in detail
No response
Beta Was this translation helpful? Give feedback.
All reactions