Skip to content

bug: broken scaffold.config.ts for targetNetwork other than hardhat / foundry #640

@technophile-04

Description

@technophile-04

Description

If you put chains other than hardhat inside targetNetwork or have more than 1 length we get this error :

Screenshot 2023-12-03 at 5 37 34 PM

Full error : 1. 'scaffoldConfig' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. [7022]

This was introduced in #630, after a lot of digging it seems that it is caused because we are importing scaffoldConfig inside abi.d.ts file. I think because .d.ts is kind of a global file maybe because of it this is caused but not completely sure but maybe @sverps has a better explanation and a solution too 🙌

Like after removing the import of scaffoldConfig the error is gone.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions