foundry icon indicating copy to clipboard operation
foundry copied to clipboard

Keep contract folder structure in the generated ABIs.

Open gagiuntoli opened this issue 2 years ago • 1 comments

Component

Forge

Describe the feature you would like

I have created this small example.

Basically in the src/ folder I have:

$ tree src/
src/
├── v1
│   └── counters
│       └── CounterV1.sol
└── v2
    └── counters
        └── CounterV2.sol

I would like to have the same folder structure on the folder where the ABIs are stored (out/). Currently, when I execute forge build I obtain:

$ tree out/
out/
├── Common.sol
│   └── CommonBase.json
├── Components.sol
│   └── Components.json
├── console2.sol
│   └── console2.json
├── console.sol
│   └── console.json
├── Counter.s.sol
│   └── CounterScript.json
├── Counter.t.sol
│   └── CounterTest.json
├── CounterV1.sol
│   └── CounterV1.json
├── CounterV2.sol
│   └── CounterV2.json
...

The folders v1 & v2 blew away.

Additional context

No response

gagiuntoli avatar Dec 01 '22 12:12 gagiuntoli