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

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.