Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// `spec_version`, and `authoring_version` are the same between Wasm and native.
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
// the compatible custom types.
spec_version: 365,
spec_version: 366,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -340,7 +340,7 @@ impl frame_system::Config for Runtime {
// The data to be stored in an account.
type AccountData = pallet_balances::AccountData<Balance>;
// Weight information for the extrinsics of this pallet.
type SystemWeightInfo = ();
type SystemWeightInfo = frame_system::weights::SubstrateWeight<Runtime>;
// This is used as an identifier of the chain. 42 is the generic substrate prefix.
type SS58Prefix = SS58Prefix;
// The set code logic, just the default since we're not a parachain.
Expand All @@ -353,7 +353,7 @@ impl frame_system::Config for Runtime {
type PreInherents = ();
type PostInherents = ();
type PostTransactions = ();
type ExtensionsWeightInfo = ();
type ExtensionsWeightInfo = frame_system::SubstrateExtensionsWeight<Runtime>;
}

impl pallet_insecure_randomness_collective_flip::Config for Runtime {}
Expand All @@ -371,7 +371,7 @@ impl pallet_grandpa::Config for Runtime {

type KeyOwnerProof = sp_core::Void;

type WeightInfo = ();
type WeightInfo = (); // pallet_grandpa exports only default implementation
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The containing module seems to be private.

Copy link
Collaborator

Choose a reason for hiding this comment

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

The containing module seems to be private.

Sorry, deleted my message after I checked the code!

type MaxAuthorities = ConstU32<32>;
type MaxSetIdSessionEntries = ConstU64<0>;
type MaxNominators = ConstU32<20>;
Expand Down Expand Up @@ -409,7 +409,7 @@ impl pallet_timestamp::Config for Runtime {
type Moment = u64;
type OnTimestampSet = Aura;
type MinimumPeriod = ConstU64<{ SLOT_DURATION / 2 }>;
type WeightInfo = ();
type WeightInfo = pallet_timestamp::weights::SubstrateWeight<Runtime>;
}

impl pallet_utility::Config for Runtime {
Expand Down
Loading