Manadatory Weight (#931)

* upsub

* Revert branch change

* Fix some

* Fix build
This commit is contained in:
Kian Paimani
2020-03-26 12:10:18 +01:00
committed by GitHub
parent c8150e1d33
commit 087736e390
3 changed files with 12 additions and 0 deletions
@@ -131,6 +131,7 @@ decl_module! {
type Error = Error<T>;
/// Provide candidate receipts for parachains, in ascending order by id.
#[weight = frame_support::weights::SimpleDispatchInfo::default()]
fn more_attestations(origin, _more: MoreAttestations) -> DispatchResult {
ensure_none(origin)?;
ensure!(!DidUpdate::exists(), Error::<T>::TooManyAttestations);