Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gui1117 committed Oct 2, 2024
1 parent bb0c547 commit ddb199d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cumulus/pallets/weight-reclaim/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ where
type Val = (Option<u64>, S::Val);
type Pre = (Option<u64>, S::Pre);

fn implicit(&self) -> Result<Self::Implicit, TransactionValidityError> {
self.0.implicit()
}

fn weight(&self, call: &T::RuntimeCall) -> Weight {
T::WeightInfo::storage_weight_reclaim().saturating_add(self.0.weight(call))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,10 @@ impl pallet_utility::Config for Runtime {
type WeightInfo = weights::pallet_utility::WeightInfo<Runtime>;
}

impl cumulus_pallet_weight_reclaim::Config for Runtime {
type WeightInfo = ();
}

// Create the runtime by composing the FRAME pallets that were previously configured.
construct_runtime!(
pub enum Runtime
Expand Down

0 comments on commit ddb199d

Please sign in to comment.