pub fn update_application_via_governance<T: Config>(
provider_key: T::AccountId,
application_index: ApplicationIndex,
payload: ApplicationContext<T::MaxProviderNameSize, T::MaxLanguageCodeSize, T::MaxLogoCidSize, T::MaxLocaleCount>,
)
Expand description
Update application via governance for given existing ApplicationIndex
§Arguments
origin
- The origin of the callprovider_key
- The key of the provider to updateapplication_index
- The index of the application to updatepayload
- The new application data
§Errors
Error::NoKeyExists
- If there is not MSA fororigin
.Error::ApplicationNotFound
- If the application is not registered.Error::InvalidCid
- If the provided CID is invalid.Error::InvalidBCP47LanguageCode
- If the provided BCP 47 language code is invalid.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::update_application_via_governance
.