Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Latest commit

 

History

History
17 lines (10 loc) · 662 Bytes

flattener.rst

File metadata and controls

17 lines (10 loc) · 662 Bytes

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.