MCPcopy Create free account
hub / github.com/dfinity/orbit / is_controller

Function is_controller

libs/orbit-essentials/src/cdk.rs:88–90  ·  view source on GitHub ↗
(principal: &Principal)

Source from the content-addressed store, hash-verified

86 }
87
88 pub fn is_controller(principal: &Principal) -> bool {
89 *principal == super::TEST_CONTROLLER_ID
90 }
91
92 pub fn trap(message: &str) -> ! {
93 panic!("{}", message);

Calls

no outgoing calls

Tested by

no test coverage detected