canisterIdOf static method

Principal canisterIdOf(
  1. Actor actor
)

Implementation

static Principal canisterIdOf(Actor actor) {
  return Principal.from(actor.metadata.config!.canisterId);
}