getAllActors static method
Implementation
static List<CanisterActor> getAllActors(
List<String> canisterIds, List<Service> idlServices) {
List<CanisterActor> actorsList = [];
for (int i = 0; i < canisterIds.length; i++) {
String canisterId = canisterIds[i];
Service idlService = idlServices[i];
HttpAgent actorAgent = _newAgent == null
? DelegationValidation.validationAgent!
: _newAgent!;
CanisterActor newActor = CanisterActor(
ActorConfig(
canisterId: Principal.fromText(canisterId),
agent: actorAgent,
),
idlService);
actorsList.add(newActor);
}
return actorsList;
}