makerdao / dss-interfaces

Abstract developer interfaces to the Dai Stablecoin System core contracts.
GNU Affero General Public License v3.0
33 stars 26 forks source link

Multi-Import Layout inherits all the interfaces in flatten file #69

Closed naszam closed 1 year ago

naszam commented 2 years ago

To reproduce:

// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.6.12;

import { VatAbstract, VowAbstract } from "dss-interfaces/Interfaces.sol";

contract TestDssInterfaces {
}

Output

brianmcmichael commented 1 year ago

This is by design. You can avoid it by importing individual interfaces.

naszam commented 1 year ago

Yes, this was addressed in #71 and included in the checklists as well, to avoid multi-import layout (see here). Closing for now.