Function cw_ownable::is_owner

source ·
pub fn is_owner(store: &dyn Storage, addr: &Addr) -> StdResult<bool>
Expand description

Return Ok(true) if the contract has an owner and it’s the given address. Return Ok(false) if the contract doesn’t have an owner, of if it does but it’s not the given address. Return Err if fails to load ownership info from storage.