Skip to content

Commit

Permalink
Merge pull request #20 from CumaOzavci/master
Browse files Browse the repository at this point in the history
Revert contract size display unit to KiB
  • Loading branch information
ItsNickBarry authored Jun 30, 2022
2 parents 55754d3 + d9b50c0 commit ba2a712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/size_contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const {
const SIZE_LIMIT = 24576;

const formatSize = function (size) {
return (size / 1000).toFixed(3);
return (size / 1024).toFixed(3);
};

task(
Expand Down Expand Up @@ -70,7 +70,7 @@ task(
await fs.promises.writeFile(outputPath, JSON.stringify(outputData), { flag: 'w' });

const table = new Table({
head: [chalk.bold('Contract Name'), chalk.bold('Size (KB)'), chalk.bold('Change (KB)')],
head: [chalk.bold('Contract Name'), chalk.bold('Size (KiB)'), chalk.bold('Change (KiB)')],
style: { head: [], border: [], 'padding-left': 2, 'padding-right': 2 },
chars: {
mid: '·',
Expand Down

0 comments on commit ba2a712

Please sign in to comment.