mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 10:31:03 +00:00
Update for using Mandatory inherents (#967)
* Update for using Mandatory inherents. * use
This commit is contained in:
@@ -399,7 +399,7 @@ decl_module! {
|
||||
type Error = Error<T>;
|
||||
|
||||
/// Provide candidate receipts for parachains, in ascending order by id.
|
||||
#[weight = SimpleDispatchInfo::FixedNormal(1_000_000)]
|
||||
#[weight = SimpleDispatchInfo::FixedMandatory(1_000_000)]
|
||||
pub fn set_heads(origin, heads: Vec<AttestedCandidate>) -> DispatchResult {
|
||||
ensure_none(origin)?;
|
||||
ensure!(!<DidUpdate>::exists(), Error::<T>::TooManyHeadUpdates);
|
||||
|
||||
Reference in New Issue
Block a user