junobuild_shared::utils

Function principal_equal

Source
pub fn principal_equal(x: Principal, y: Principal) -> bool
Expand description

Checks if two principals are equal.

§Arguments

  • x - The first principal to compare.
  • y - The second principal to compare.

§Returns

True if the principals are equal; false otherwise.