defi-wonderland / smock

The Solidity mocking library
MIT License
319 stars 40 forks source link

Avoid executing function logic (only return the desired value) #97

Open mariogutval opened 2 years ago

mariogutval commented 2 years ago

Is your feature request related to a problem? Please describe. Would it be possible to ignore the logic of a function?

Describe the solution you'd like I mean, instead of simply mocking the returned value of a function, I would like to do that plus avoiding executing the logic that the function includes, i.e., returning a value without executing anything. That would prevent global variables values to be modified.

0xGorilla commented 2 years ago

This would be great, I will check it out. Sorry for the late reply!