Skip to content

Commit

Permalink
GEAR_PAGE_SIZE as u64
Browse files Browse the repository at this point in the history
  • Loading branch information
ukint-vs committed Nov 21, 2023
1 parent d03eb7b commit ab3ef15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/gear/src/schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ impl<T: Config> Default for MemoryWeights<T> {
load_page_data: to_weight!(to_cost_per_gear_page!(lazy_pages_load_page_storage_data)
.saturating_sub(to_cost_per_gear_page!(lazy_pages_signal_read))),
upload_page_data: to_weight!(cost!(db_write_per_byte)
.saturating_mul(GEAR_PAGE_SIZE)
.saturating_mul(GEAR_PAGE_SIZE as u64)
.saturating_add(T::DbWeight::get().writes(1).ref_time())),
// TODO: make benches to calculate static page cost and mem grow cost (issue #2226)
static_page: Weight::from_parts(100, 0),
Expand Down

0 comments on commit ab3ef15

Please sign in to comment.