I am trying to instantiate an canister from its id:
actor {
public func main(canisterId: Text) : async Nat {
let canister2 = actor(canisterId): **actor { getValue: () -> async Nat };**
return await canister2.getValue();
};
};
However, in my case I have defined the actor using an actor class, so am not sure how to declare the type signature. Anyway to get the type signature of the actor from the actor class?