Skip to content

Remove Buidler console.log imports and calls from Solidity source files 🪓

License

Notifications You must be signed in to change notification settings

fvictorio/buidler-log-remover

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buidler Log Remover

Remove Buidler 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 buidler-preprocessor.

Installation

yarn add --dev buidler-log-remover

Usage

Load plugin in Buidler config:

usePlugin('buidler-log-remover');

Run the Buidler task manually:

yarn run buidler 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

About

Remove Buidler console.log imports and calls from Solidity source files 🪓

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%