Nostradamus Predicting Maelstroms

    hardhat-log-remover

    2.0.2 • Public • Published

    Hardhat Log Remover

    Remove Hardhat console.log imports and calls from Solidity source code.

    This plugin is intended in part to keep version-controlled code free of log statements. To remove logs from compiled contracts while preserving them in source code, see hardhat-preprocessor.

    Versions of this plugin prior to 2.0.0 were released as buidler-log-remover.

    Installation

    yarn add --dev hardhat-log-remover

    Usage

    Load plugin in Hardhat config:

    require('hardhat-log-remover');

    Run the Hardhat task manually:

    yarn run hardhat remove-logs

    Before removing logs, the plugin will ensure that all contracts can be compiled successfully.

    Testing

    Run the unit tests with Mocha:

    yarn run mocha

    Install

    npm i hardhat-log-remover

    DownloadsWeekly Downloads

    3,979

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    6.5 kB

    Total Files

    7

    Last publish

    Collaborators

    • itsnickbarry