Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Replace max_block with Weight::MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
KiChjang committed Oct 6, 2021
1 parent cd36b05 commit 174cb8a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions runtime/parachains/src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,22 +280,22 @@ pub trait WeightInfo {
pub struct TestWeightInfo;
impl WeightInfo for TestWeightInfo {
fn set_config_with_block_number() -> Weight {
frame_system::limits::BlockWeights::default().max_block
Weight::MAX
}
fn set_config_with_u32() -> Weight {
frame_system::limits::BlockWeights::default().max_block
Weight::MAX
}
fn set_config_with_option_u32() -> Weight {
frame_system::limits::BlockWeights::default().max_block
Weight::MAX
}
fn set_config_with_weight() -> Weight {
frame_system::limits::BlockWeights::default().max_block
Weight::MAX
}
fn set_config_with_balance() -> Weight {
frame_system::limits::BlockWeights::default().max_block
Weight::MAX
}
fn set_hrmp_open_request_ttl() -> Weight {
frame_system::limits::BlockWeights::default().max_block
Weight::MAX
}
}

Expand Down
10 changes: 5 additions & 5 deletions runtime/parachains/src/paras.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,19 +281,19 @@ pub trait WeightInfo {
pub struct TestWeightInfo;
impl WeightInfo for TestWeightInfo {
fn force_set_current_code(_c: u32) -> Weight {
frame_system::limits::BlockWeights::default().max_block
Weight::MAX
}
fn force_set_current_head(_s: u32) -> Weight {
frame_system::limits::BlockWeights::default().max_block
Weight::MAX
}
fn force_schedule_code_upgrade(_c: u32) -> Weight {
frame_system::limits::BlockWeights::default().max_block
Weight::MAX
}
fn force_note_new_head(_s: u32) -> Weight {
frame_system::limits::BlockWeights::default().max_block
Weight::MAX
}
fn force_queue_action() -> Weight {
frame_system::limits::BlockWeights::default().max_block
Weight::MAX
}
}

Expand Down

0 comments on commit 174cb8a

Please sign in to comment.