pub fn mng_is_owner(contract_id: ContractId, principal: Principal) -> bool
Expand description

Checks if the provided principal is owner of the contract.

§Parameters

  • contract_id: Target contract id.
  • principal: Principal to check.

§Result

Bool value indicating whether the principal is owner or not.

§Sample request

CONTRACT_ID=1_376_994_832_725_996_537_612_682_825_051_864_610_558_585_037_795
PRINCIPAL='principal "dimdt-vwpm3-tkwgu-c2nkv-txykr-atn2x-xras5-6xidt-wtti3-i4xr6-vqe"'

dfx canister call coreledger_backend mng_is_owner "($CONTRACT_ID, $PRINCIPAL)"

§Sample response

(false)