Access to canister Ids of other actors, without circular dependency #3659
Gekctek
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am having an issue where I have X amount of actors in Motoko that all intercommunicate with each other, but the current model of
import MyCanister "canister:my_canister"
does not work if I have actors reference each other due to circular dependencyI do not need the type information of each canister, because I have seperate service/actor type definitions of the actors, outside of the actor itself, so all i need is the id of each canister, but am unable to access them
Problem:
Canister1.mo
Canister2.mo
Solution?: Have ids be able to be imported vs the entire actor
Canister1.mo
Canister1Types.mo
Canister2.mo
Canister2Types.mo
I dont really have any strong opinion on the solution, I just want to be able to access other dfx defined canister ids so that I dont have to do weird work arounds such as 'initializing' an actor by sending over the id AFTER creation, hardcoding, or making them actor classes that have to be created after the 'top level' actor is created
Beta Was this translation helpful? Give feedback.
All reactions