Etherlime
  • Introduction
  • Developer Documentation
    • Quick Start
    • Etherlime Library API
      • Deployer
      • Deployed Contract Wrapper
    • Etherlime CLI
      • Installing and Help
      • etherlime init
      • etherlime ganache
      • etherlime compile
      • etherlime deploy
      • etherlime history
      • etherlime test
      • etherlime coverage
      • etherlime flatten
      • etherlime ide
      • etherlime zk
      • etherlime utils
    • Migration from Truffle to Etherlime
    • Migration from v1.2 to v2.0
    • License
Powered by GitBook
On this page

Was this helpful?

  1. Developer Documentation
  2. Etherlime CLI

etherlime flatten

Syntax

etherlime flatten [file] [solcVersion]

Parameters:

  • file - The name of the contract from "./contract" folder that you

    want to be flattened.

  • solcVersion - [Optional] By specifying solcVersion you can set

    the version of the solc which will be used for compiling the smart

    contracts. By default it uses the solc version from your

    node_modules or the default one from etherlime.

Running this command will flatten the given smart contract and will record all Solidity code in one file along with imported sources. It will create "./flat" folder where you can find the flattened contract.

Previousetherlime coverageNextetherlime ide

Last updated 6 years ago

Was this helpful?