smock icon indicating copy to clipboard operation
smock copied to clipboard

feat request: allow mocking of internal functions

Open asafyish opened this issue 3 years ago • 1 comments

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.

asafyish avatar Dec 30 '21 16:12 asafyish

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.

smartcontracts avatar Mar 16 '22 15:03 smartcontracts