Skip to content

Commit

Permalink
removed runtime types that are unnecessarily implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
bolajahmad committed May 17, 2024
1 parent dd793cc commit 89e7206
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 30 deletions.
1 change: 1 addition & 0 deletions polkadot/runtime/rococo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ try-runtime = [
"sp-runtime/try-runtime",
]

# When enabled, the runtime API will not be built.
disable-runtime-api = []

# Set timing constants (e.g. session period) to faster versions to speed up testing.
Expand Down
15 changes: 0 additions & 15 deletions polkadot/runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,21 +205,6 @@ parameter_types! {

#[derive_impl(frame_system::config_preludes::RelayChainDefaultConfig)]
impl frame_system::Config for Runtime {
type RuntimeOrigin = RuntimeOrigin;
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type Hashing = BlakeTwo256;
type Lookup = AccountIdLookup<AccountId, ()>;
type RuntimeTask = RuntimeTask;
type PalletInfo = PalletInfo;
type OnNewAccount = ();
type OnKilledAccount = ();
type OnSetCode = ();
type SingleBlockMigrations = ();
type MultiBlockMigrator = ();
type PreInherents = ();
type PostInherents = ();
type PostTransactions = ();
type BaseCallFilter = EverythingBut<IsIdentityCall>;
type BlockWeights = BlockWeights;
type BlockLength = BlockLength;
Expand Down
1 change: 1 addition & 0 deletions polkadot/runtime/westend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ try-runtime = [
"sp-runtime/try-runtime",
]

# When enabled, the runtime API will not be built.
disable-runtime-api = []

# Set timing constants (e.g. session period) to faster versions to speed up testing.
Expand Down
15 changes: 0 additions & 15 deletions polkadot/runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,21 +196,6 @@ parameter_types! {

#[derive_impl(frame_system::config_preludes::RelayChainDefaultConfig)]
impl frame_system::Config for Runtime {
type RuntimeOrigin = RuntimeOrigin;
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type Hashing = BlakeTwo256;
type Lookup = AccountIdLookup<AccountId, ()>;
type RuntimeTask = RuntimeTask;
type PalletInfo = PalletInfo;
type OnNewAccount = ();
type OnKilledAccount = ();
type OnSetCode = ();
type SingleBlockMigrations = ();
type MultiBlockMigrator = ();
type PreInherents = ();
type PostInherents = ();
type PostTransactions = ();
type BaseCallFilter = EverythingBut<IsIdentityCall>;
type BlockWeights = BlockWeights;
type BlockLength = BlockLength;
Expand Down

0 comments on commit 89e7206

Please sign in to comment.