SCSR: Solidity Contract Size Reporter
This command-line utility calculates the bytecode length of your solidity contracts and warns you if you are approaching maximum contract size limit.
Getting Started
npm install scsr -g
CLI Arguments
- Path to truffle project (or similar) root.
string
- Show detailed report.
false
ortrue
How to Use Solidity Contract Size Reporter?
Edit your package json and add an entry under scripts
section.
"scripts": {
"compile": "truffle compile && scsr ./ true",
},
and run
npm run compile