defi-wonderland / smock

The Solidity mocking library
MIT License
321 stars 39 forks source link

feat request: allow mocking of internal functions #106

Open asafyish opened 2 years ago

asafyish commented 2 years ago

It would be very useful to mock internal/private functions. I have a public/external function that calls a bunch of internal functions and I would like to change those internal functions behaviour.

smartcontracts commented 2 years ago

Hi, unfortunately mocking internal functions can't be supported until we refactor the code to integrate at a deeper level. We probably have to modify the ethereumjs-VM entirely for this to work.