diff --git a/cumulus/pallets/parachain-system/src/lib.rs b/cumulus/pallets/parachain-system/src/lib.rs index 79b8815b3b..90c832eb0c 100644 --- a/cumulus/pallets/parachain-system/src/lib.rs +++ b/cumulus/pallets/parachain-system/src/lib.rs @@ -258,7 +258,7 @@ decl_module! { } #[weight = 1_000_000] - fn enact_authorized_upgrade(origin, code: Vec) { + fn enact_authorized_upgrade(_origin, code: Vec) -> DispatchResultWithPostInfo { // No ensure origin on purpose. We validate by checking the code vs hash in storage. let required_hash = AuthorizedUpgrade::::get() .ok_or(Error::::NothingAuthorized)?; @@ -266,6 +266,7 @@ decl_module! { ensure!(actual_hash == required_hash, Error::::Unauthorized); Self::set_code_impl(code)?; AuthorizedUpgrade::::kill(); + Ok(Pays::No.into()) } fn on_finalize() {