foundry
foundry copied to clipboard
Keep contract folder structure in the generated ABIs.
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