I currently get a principals from actor classes from the following code:
let a = await ActorClass.ActorClass();
let p : Principal = Principal.fromActor(a); // Get principal from actor
Later, using that principal i want to make a connection back to the actor class. What is the syntax for doing so in Motoko?
let a = ActorClass.ActorClass(p); ??????
let a = ActorClass.ActorClass.fromPrincipal(p); ?????