The generated Solidity interface code is saved as a Solidity file source while it's only Solidity code, to be a compilable file it requires at least the pragma solidity XXX; preamble, maybe that information could be fetch from the hardhat configuration which already holds the compilers version, but I would suggest either latest available or original source file compiler version;
The generated Solidity interface code is saved as a Solidity file source while it's only Solidity code, to be a compilable file it requires at least the
pragma solidity XXX;
preamble, maybe that information could be fetch from the hardhat configuration which already holds the compilers version, but I would suggest either latest available or original source file compiler version;