Skip to content

Commit 4a7fc87

Browse files
Apply suggestions from code review
Co-authored-by: Branislav Kontur <[email protected]>
1 parent 88139a6 commit 4a7fc87

File tree

6 files changed

+4
-8
lines changed

6 files changed

+4
-8
lines changed

pallets/relayer-set/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ pub mod pallet {
4646
#[pallet::config]
4747
pub trait Config: frame_system::Config {
4848
/// The overarching event type.
49-
#[allow(deprecated)]
50-
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
5149
/// Weight information for extrinsics in this pallet.
5250
type WeightInfo: WeightInfo;
5351
/// Origin for adding or removing a relayer.

pallets/transaction-storage/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,6 @@ pub mod pallet {
147147
#[pallet::config]
148148
pub trait Config: frame_system::Config {
149149
/// The overarching event type.
150-
#[allow(deprecated)]
151-
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
152150
/// Weight information for extrinsics in this pallet.
153151
type WeightInfo: WeightInfo;
154152
/// Maximum number of indexed transactions in a block.

pallets/validator-set/src/mock.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,10 @@ impl pallet_session::Config for Test {
146146
type RuntimeEvent = RuntimeEvent;
147147
type Currency = pallets_common::NoCurrency<AccountId, RuntimeHoldReason>;
148148
type KeyDeposit = ();
149-
// TODO: check this
150149
type DisablingStrategy = ();
151150
}
152151

153152
impl pallet_session::historical::Config for Test {
154-
type RuntimeEvent = RuntimeEvent;
155153
type FullIdentification = Self::ValidatorId;
156154
type FullIdentificationOf = Self::ValidatorIdOf;
157155
}

runtime/src/bridge_config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ where
244244
.and_then(|payload| decode_bridge_message(payload).map(|(_, xcm)| xcm).map_err(drop))
245245
.and_then(|xcm| xcm.try_into().map_err(drop))
246246
// TODO: FAIL-CI Weight::MAX maybe change for something else, hard-coded or Weight::MAX/4...
247+
// TODO: (real weights) https://github.com/paritytech/polkadot-bulletin-chain/issues/22
247248
.and_then(|xcm| XcmExecutor::<XcmConfig>::prepare(xcm, Weight::MAX).map_err(drop))
248249
.map(|weighed_xcm| weighed_xcm.weight_of())
249250
.unwrap_or(Weight::zero())

runtime/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ impl pallet_session::Config for Runtime {
276276
}
277277

278278
impl pallet_session::historical::Config for Runtime {
279-
type RuntimeEvent = RuntimeEvent;
280279
type FullIdentification = Self::ValidatorId;
281280
type FullIdentificationOf = Self::ValidatorIdOf;
282281
}
@@ -388,7 +387,7 @@ construct_runtime!(
388387
// Authorship must be before session in order to note author in the correct session.
389388
Authorship: pallet_authorship::{Pallet, Storage} = 10,
390389
Offences: pallet_offences::{Pallet, Storage, Event} = 11,
391-
Historical: pallet_session::historical::{Pallet, Event<T>} = 12,
390+
Historical: pallet_session::historical = 12,
392391
ValidatorSet: pallet_validator_set::{Pallet, Storage, Event<T>, Config<T>} = 13,
393392
Session: pallet_session = 14,
394393
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config<T>, Event, ValidateUnsigned} = 15,

runtime/src/weights/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ impl pallet_bridge_parachains::WeightInfoExt
2222
for bridge_polkadot_parachains::WeightInfo<crate::Runtime>
2323
{
2424
fn expected_extra_storage_proof_size() -> u32 {
25+
// TODO: (clean up) https://github.com/paritytech/polkadot-bulletin-chain/issues/22
2526
bp_bridge_hub_rococo::EXTRA_STORAGE_PROOF_SIZE
2627
}
2728

@@ -38,6 +39,7 @@ impl pallet_bridge_messages::WeightInfoExt
3839
for bridge_polkadot_messages::WeightInfo<crate::Runtime>
3940
{
4041
fn expected_extra_storage_proof_size() -> u32 {
42+
// TODO: (clean up) https://github.com/paritytech/polkadot-bulletin-chain/issues/22
4143
bp_bridge_hub_rococo::EXTRA_STORAGE_PROOF_SIZE
4244
}
4345

0 commit comments

Comments
 (0)