makerdao / dss-test

GNU Affero General Public License v3.0
11 stars 9 forks source link

Exports should group by name instead of all into one #45

Closed hexonaut closed 3 months ago

hexonaut commented 3 months ago

Fixes an issue where exporting to multiple jsons at once would not separate by name.

Ex)

ScriptTools.exportContract("A", "someContractA", address(123));
ScriptTools.exportContract("B", "someContractB", address(456));

before this would output both contracts someContractA and someContractB to the B.json. With this change both A.json and B.json will have only their 1 respective contract.

DaiFoundation-DevOps commented 3 months ago

CLA assistant check
All committers have signed the CLA.

amusingaxl commented 3 months ago

Can you please explain a little bit further what issue you are trying to fix here?

hexonaut commented 3 months ago

Updated OP