Skip to content

Conversation

@Stephenlawrence00
Copy link
Contributor

Fixes #10758

Replaced the default () implementations for SystemWeightInfo and ExtensionsWeightInfo with MustOverrideWeightInfo and MustOverrideExtensionsWeightInfo types that panic at runtime if used. This forces runtime developers to explicitly provide weight configurations.

  types that panic when used
@Stephenlawrence00 Stephenlawrence00 requested a review from a team as a code owner January 26, 2026 10:12

/// Weight information for the extrinsics of this pallet.
type SystemWeightInfo = ();
type SystemWeightInfo = crate::MustOverrideWeightInfo;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As proposed by @gui1117, we should remove the default values and not add this hack here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Surprisingly for frame system ParaChainDefaultConfig and SolochainDefaultConfig default weight info to ()

2 participants