Skip to content

Commit

Permalink
chore(forge): kB to B in build --sizes (#7588)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamuik16 authored Apr 8, 2024
1 parent 61f046d commit 5274799
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/common/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,8 @@ impl Display for SizeReport {
table.load_preset(ASCII_MARKDOWN);
table.set_header([
Cell::new("Contract").add_attribute(Attribute::Bold).fg(Color::Blue),
Cell::new("Size (kB)").add_attribute(Attribute::Bold).fg(Color::Blue),
Cell::new("Margin (kB)").add_attribute(Attribute::Bold).fg(Color::Blue),
Cell::new("Size (B)").add_attribute(Attribute::Bold).fg(Color::Blue),
Cell::new("Margin (B)").add_attribute(Attribute::Bold).fg(Color::Blue),
]);

// filters out non dev contracts (Test or Script)
Expand All @@ -419,8 +419,8 @@ impl Display for SizeReport {

table.add_row([
Cell::new(name).fg(color),
Cell::new(contract.size as f64 / 1000.0).fg(color),
Cell::new(margin as f64 / 1000.0).fg(color),
Cell::new(contract.size).fg(color),
Cell::new(margin).fg(color),
]);
}

Expand Down

0 comments on commit 5274799

Please sign in to comment.