defi-wonderland / smock

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

atCall improved syntax #62

Closed 0xGorilla closed 2 years ago

0xGorilla commented 3 years ago

Describe the solution you'd like I believe it would be nicer to change: revertsAtCall(1, 'something went wrong') to .atCall(1).reverts('something went wrong') and returnsAtCall(1, 'bla') to .atCall(1).returns('bla')

Additional context The current API should still work but trigger a warning message

0xGorilla commented 2 years ago

Not going to do this, it's more complex than it sounds and the benefit is almost 0