// Public function that adds reputation to a profile
Public function that adds reputation to a profile
Public function that adds reputation to a profile
pub fn add_reputation(owner: &T::AccountId) -> Result<(), Error<T>> {
			// Get current profile
			let mut profile = Self::profiles(owner).ok_or(<Error<T>>::NoUpdateAuthority)?;
			// Increase reputation
			profile.increase_reputation();
			// Insert into storage a new profile
			<Profiles<T>>::insert(owner, profile);
			Ok(())
		}
pub fn add_reputation ( owner : & T :: AccountId ) -> Result < ( ) , Error < T > > { // Get current profile let mut profile = Self :: profiles ( owner ) . ok_or ( < Error < T > > :: NoUpdateAuthority ) ? ; // Increase reputation profile . increase_reputation ( ) ; // Insert into storage a new profile < Profiles < T > > :: insert ( owner , profile ) ; Ok ( ( ) ) }
Public function that adds reputation to a profile
Public function that adds reputation to a profile
owner
&T::AccountId