Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 498a00e

Browse files
committed
1 parent 952cd78 commit 498a00e

File tree

16 files changed

+203
-166
lines changed

16 files changed

+203
-166
lines changed

modules/fee-market/src/weight.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ impl WeightInfo for () {
143143
}
144144

145145
fn set_slash_protect() -> Weight {
146-
Weight::from_ref_time(17_332_000 as u64).saturating_add(RocksDbWeight::get().writes(1 as u64))
146+
Weight::from_ref_time(17_332_000 as u64)
147+
.saturating_add(RocksDbWeight::get().writes(1 as u64))
147148
}
148149

149150
fn set_assigned_relayers_number() -> Weight {

modules/grandpa/src/mock.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ impl frame_system::Config for TestRuntime {
6868
type BlockLength = ();
6969
type BlockNumber = u64;
7070
type BlockWeights = ();
71-
type RuntimeCall = RuntimeCall;
7271
type DbWeight = ();
73-
type RuntimeEvent = ();
7472
type Hash = H256;
7573
type Hashing = BlakeTwo256;
7674
type Header = Header;
@@ -80,8 +78,10 @@ impl frame_system::Config for TestRuntime {
8078
type OnKilledAccount = ();
8179
type OnNewAccount = ();
8280
type OnSetCode = ();
83-
type RuntimeOrigin = RuntimeOrigin;
8481
type PalletInfo = PalletInfo;
82+
type RuntimeCall = RuntimeCall;
83+
type RuntimeEvent = ();
84+
type RuntimeOrigin = RuntimeOrigin;
8585
type SS58Prefix = ();
8686
type SystemWeightInfo = ();
8787
type Version = ();

modules/messages/src/inbound_lane.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ mod tests {
553553
run_test(|| {
554554
let mut lane = inbound_lane::<TestRuntime, _>(TEST_LANE_ID);
555555
let mut payload = REGULAR_PAYLOAD;
556-
payload.dispatch_result.unspent_weight = 1;
556+
*payload.dispatch_result.unspent_weight.ref_time_mut() = 1;
557557
assert_eq!(
558558
lane.receive_message::<TestMessageDispatch, _>(
559559
&TEST_RELAYER_A,

0 commit comments

Comments
 (0)