---
title: "Discussion on \"How to unflatten Solidity contracts\" | Hashnode"
description: "Discussion on \"How to unflatten Solidity contracts\". Useful if you fork flattened contracts and want to bring a better development experience for you and your team."
url: "https://hashnode.com/posts/how-to-unflatten-solidity-contracts/6253279575dccb6f343200bf"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to unflatten Solidity contracts](https://blog.devdavi.io/how-to-unflatten-solidity-contracts?utm_source=hashnode&utm_medium=feed)

Useful if you fork flattened contracts and want to bring a better development experience for you and your team.

Apr 10, 2022 · 2 min read · blog.devdavi.io  
Updated Mar 4, 2023  
Read the article

-   [#blockchain](https://hashnode.com/tag/blockchain)
-   [#web3](https://hashnode.com/tag/web3)
-   [#solidity](https://hashnode.com/tag/solidity)
-   [#cli](https://hashnode.com/tag/cli)
-   [#smart-contracts](https://hashnode.com/tag/smart-contracts)

## Written by

[Davi Coelho](https://hashnode.com/@devdavi)

@devdavi · Belo Horizonte, Brazil

  
[View profile](https://hashnode.com/@devdavi)

Smart Contracts Auditor @ Hacken

I'm a smart contracts auditor at Hacken and FreshCoins co-owner. In love with open source community and aviation world 👨‍💻🛩

## Responses 1

Markdown supported · ⌘↵ to post

[Stephen Novosel](https://hashnode.com/@smartk)

[Sep 8, 2022](https://hashnode.com/posts/how-to-unflatten-solidity-contracts/6253279575dccb6f343200bf/comment/631a30c800230a29830dcb6b)

Davi, will this work with sources flattened with Hardhat?

[Davi Coelho](https://hashnode.com/@devdavi)

[Oct 1, 2022](https://hashnode.com/posts/how-to-unflatten-solidity-contracts/6253279575dccb6f343200bf/comment/631a30c800230a29830dcb6b#reply-63389d88fa20fa4bc8e57b95)

Nice catch! Not really. I'll push a fix for that right now.

[Davi Coelho](https://hashnode.com/@devdavi)

[Oct 1, 2022](https://hashnode.com/posts/how-to-unflatten-solidity-contracts/6253279575dccb6f343200bf/comment/631a30c800230a29830dcb6b#reply-6338a95de594fa4ba3b9078b)

Now it works. Thanks for noticing :)

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1664656882744/-ijDfwKoB.png)
