Skip to content

ejwessel/truffle-flatten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

truffle-flatten

Thanks to Nomic Labs for the heavy lifting.

This truffle plugin does very little in addition to what the base tool Nomic Labs has provided.

  • It extracts all pragmas to the top of the flattened file
  • the highest pragma version is selected
  • saves the flattened source into flatten/Flattened.sol

Installation

  1. Install the plugin with npm
    npm install truffle-flatten
    
  2. Add the plugin to your truffle.js or truffle-config.js file
    module.exports = {
      /* ... rest of truffle-config */
    
      plugins: [
        'truffle-flatten'
      ]
    }

Usage

truffle run flatten <Source.sol>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published