getActor static method

CanisterActor getActor(
  1. String canisterIds,
  2. Service idlServices
)

Implementation

static CanisterActor getActor(String canisterIds, Service idlServices) {
  HttpAgent actorAgent =
      _newAgent == null ? DelegationValidation.validationAgent! : _newAgent!;

  CanisterActor newActor = CanisterActor(
      ActorConfig(
        canisterId: Principal.fromText(canisterIds),
        agent: actorAgent,
      ),
      idlServices);

  return newActor;
}