6

I'd like to test a contract internal functions. I used to inherit the contract and test it with truffle but that involved Solidity test files.

Can I do the same with my current stack (hardhat/mocha/ethersjs/typescript) or are there better alternatives?

Thanks

2 Answers 2

1

All Solidity development frameworks are subject to the same limitations of Solidity language, so unfortunately there is nothing better.

0

Looks like there is a plugin for this now: hardhat-exposed; though I didn't try it yet.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.