Function indexer::logic::verify_issuer
source · pub fn verify_issuer(
principal: Principal,
issuer_type: String,
metadata: (String, String, String)
) -> Result<(), String>
Expand description
Verifies an existing issuer and updates their information.
§Arguments
principal
- The principal ID of the issuer to be verified.issuer_type
- The type of the issuer.metadata
- A tuple containing (reputation_module, name, description) of the issuer.
§Returns
Result<(), String>
- ReturnsOk(())
if successful, or an error message if failed.
§Errors
- Returns an error if the caller is not a controller.
- Returns an error if the issuer is not found.