etherlime flatten
Syntax
Parameters:
file
- The name of the contract from "./contract" folder that youwant to be flattened.
solcVersion
- [Optional] By specifyingsolcVersion
you can setthe 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.
Last updated