fn create_registry(info: &Self::RegistryInfo) -> Result<Self::RegistryId, dispatch::DispatchError> {
        // Generate registry id as nonce
        let id = Self::create_new_registry_id()?;

        // Insert registry in storage
        Registries::insert(id.clone(), info);

        Ok(id)
    }
// Registries with identical RegistryInfo may exist
Registries with identical RegistryInfo may exist
Registries with identical RegistryInfo may exist
fn create_registry(info: &Self::RegistryInfo) -> Result<Self::RegistryId, dispatch::DispatchError> {
        // Generate registry id as nonce
        let id = Self::create_new_registry_id()?;
        // Insert registry in storage
        Registries::insert(id.clone(), info);
        Ok(id)
    }
fn create_registry ( info : & Self :: RegistryInfo ) -> Result < Self :: RegistryId , dispatch :: DispatchError > { // Generate registry id as nonce let id = Self :: create_new_registry_id ( ) ? ; // Insert registry in storage Registries :: insert ( id . clone ( ) , info ) ; Ok ( id ) }
Registries with identical RegistryInfo may exist
Registries with identical RegistryInfo may exist
info
&Self::RegistryInfo