frangio / hardhat-exposed

Automatically expose internal Solidity functions for smart contract testing.
82 stars 13 forks source link

Hardhat multi-dir compile #33

Open aaronyuai opened 5 months ago

aaronyuai commented 5 months ago

I got following error when running hardhat compile --force Types containing (nested) mappings can only be parameters or return variables of internal or library functions.

I'm not debugging deep into this because the error comes from the method I'm not using (which can be deleted from sol file), and the method I'd like to test is not in contract-exposed sol (not sure why)

I found it could be much simpler if I provide the test sol wrapper to open visibility of the method I'd like to test, instead of having an automated tool. But hardhat does not support multi-dir compile, this seems to be a popular feature request. Can you consider making some changes in hardhat-exposed to support compile the sol I provide?

frangio commented 5 months ago

Please share the Solidity code so I can debug.