dmihal / hardhat-interface-generator

MIT License
32 stars 2 forks source link

Invalid solidity file produced due to missing compiler version in source file #1

Open Linsayv opened 3 years ago

Linsayv commented 3 years ago

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;