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

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files Browse the repository at this point in the history
jiguantong committed Nov 17, 2022
1 parent 952cd78 commit 498a00e
Showing 16 changed files with 203 additions and 166 deletions.
3 changes: 2 additions & 1 deletion modules/fee-market/src/weight.rs
Original file line number Diff line number Diff line change
@@ -143,7 +143,8 @@ impl WeightInfo for () {
}

fn set_slash_protect() -> Weight {
Weight::from_ref_time(17_332_000 as u64).saturating_add(RocksDbWeight::get().writes(1 as u64))
Weight::from_ref_time(17_332_000 as u64)
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}

fn set_assigned_relayers_number() -> Weight {
6 changes: 3 additions & 3 deletions modules/grandpa/src/mock.rs
Original file line number Diff line number Diff line change
@@ -68,9 +68,7 @@ impl frame_system::Config for TestRuntime {
type BlockLength = ();
type BlockNumber = u64;
type BlockWeights = ();
type RuntimeCall = RuntimeCall;
type DbWeight = ();
type RuntimeEvent = ();
type Hash = H256;
type Hashing = BlakeTwo256;
type Header = Header;
@@ -80,8 +78,10 @@ impl frame_system::Config for TestRuntime {
type OnKilledAccount = ();
type OnNewAccount = ();
type OnSetCode = ();
type RuntimeOrigin = RuntimeOrigin;
type PalletInfo = PalletInfo;
type RuntimeCall = RuntimeCall;
type RuntimeEvent = ();
type RuntimeOrigin = RuntimeOrigin;
type SS58Prefix = ();
type SystemWeightInfo = ();
type Version = ();
2 changes: 1 addition & 1 deletion modules/messages/src/inbound_lane.rs
Original file line number Diff line number Diff line change
@@ -553,7 +553,7 @@ mod tests {
run_test(|| {
let mut lane = inbound_lane::<TestRuntime, _>(TEST_LANE_ID);
let mut payload = REGULAR_PAYLOAD;
payload.dispatch_result.unspent_weight = 1;
*payload.dispatch_result.unspent_weight.ref_time_mut() = 1;
assert_eq!(
lane.receive_message::<TestMessageDispatch, _>(
&TEST_RELAYER_A,
Loading

0 comments on commit 498a00e

Please sign in to comment.