hardhat-contract-sizer
Advanced tools
Comparing version
@@ -52,3 +52,3 @@ const { extendConfig } = require('hardhat/config'); | ||
const table = new Table({ | ||
head: [colors.bold('Contract Name'), 'Size (Kb)'], | ||
head: [colors.bold('Contract Name'), 'Size (KB)'], | ||
style: { head: [], border: [], 'padding-left': 2, 'padding-right': 2 }, | ||
@@ -80,3 +80,3 @@ chars: { | ||
let size = (contract.size / 1024).toFixed(2); | ||
let size = (contract.size / 1000).toFixed(3); | ||
@@ -83,0 +83,0 @@ if (contract.size > SIZE_LIMIT) { |
{ | ||
"name": "hardhat-contract-sizer", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Output Solidity contract sizes with Hardhat", |
@@ -28,3 +28,3 @@ # Hardhat Contract Sizer | ||
| `disambiguatePaths` | whether to output the full path to the compilation artifact (relative to the Hardhat root directory) | `false` | | ||
| `strict` | whether to throw an error if any contracts exceed the size limit | `false` | | ||
| `strict` | whether to throw an error if any contracts exceed the size limit (may cause compatibility issues with `hardhat-contract-sizer`) | `false` | | ||
@@ -31,0 +31,0 @@ ```javascript |
6976
0.91%