How to Flatten contracts in Remix?

I know there used to be a "flattener" plugin inside remix, but can't seem to find it anymore. how can i now flatten the contract?


Rightclick on your contract in remix and a menu will pop-up. The flatten option will be there.


lifesaver. :smiley:

can't explain how much time i wasted trying to use node flatteners

Seem to not be working anymore

Yeah it still works. But you have to navigate to the 'File Explorer' and find the contract-thatyoucreatedinremix.sol in the files list (normally at the very bottom). Right click on that .sol file and 'flatten' is the option you need

1 Like