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 3, 2024
1 parent f158fdf commit 8987e57
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 @@ -330,6 +330,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 @@ -201,21 +201,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 @@ -345,6 +345,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 @@ -192,21 +192,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 8987e57

Please sign in to comment.