Skip to content

Commit

Permalink
DbWeight from frame_system::Config used
Browse files Browse the repository at this point in the history
  • Loading branch information
ipapandinas committed Dec 4, 2024
1 parent efd9b61 commit 6218b74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/shibuya/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ parameter_types! {
//
// TODO: This hardcoded addition is a temporary fix. Replace it with a proper
// benchmark in the future.
weights.base_extrinsic = ExtrinsicBaseWeight::get().saturating_add(RocksDbWeight::get().reads(1));
weights.base_extrinsic = ExtrinsicBaseWeight::get().saturating_add(<Runtime as frame_system::Config>::DbWeight::get().reads(1));
})
.for_class(DispatchClass::Normal, |weights| {
weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);
Expand Down

0 comments on commit 6218b74

Please sign in to comment.