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.