Skip to content

Commit

Permalink
chore: update docs (#4029)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreif authored Jun 9, 2023
1 parent 287296a commit 862f734
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/md/base/Principal.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,19 @@ let principal = Principal.fromText("un4fu-tqaaa-aaaab-qadjq-cai");
Principal.isAnonymous(principal) // => false
```

## Function `isController`
``` motoko no-repl
func isController(p : Principal) : Bool
```

Checks if the given principal can control this canister.

Example:
```motoko include=import
let principal = Principal.fromText("un4fu-tqaaa-aaaab-qadjq-cai");
Principal.isController(principal) // => false
```

## Function `hash`
``` motoko no-repl
func hash(principal : Principal) : Hash.Hash
Expand Down

0 comments on commit 862f734

Please sign in to comment.