Flattening Smart Contracts

When a smart contract imports a contract that it depends on from another source, that top level smart contract and it's dependencies will have to be flattened before it can be verified on a block explorer. This section explains how to flatten smart contracts using three different development toolchains; Remix, Truffle, and Hardhat.

For a good overview of flattening smart contracts on the XDC Network please refer to this article.

Last updated