🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

hardhat-contract-sizer

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hardhat-contract-sizer - npm Package Compare versions

Comparing version

to
2.1.1

4

index.js

@@ -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