Conversation
|
Thanks! The reason we haven't done this to date is that since However, once dapphub/dapptools#719 lands, this shouldn't be nearly as much of an issue, and I would be happy to add the interface to I do have a few requests however:
|
|
Awesome will add them soon. |
Added hevm variable
Just committed the suggested changes. And tested them in a local repo 😉 |
|
@d-xo would having an hevm contract as a public state var for every test mess with the invariant targeting? Might force everyone to use an targetContracts method |
|
Test contracts are excluded by default from invariant tests so I think we should be fine. |
But Hevm isn't a test contract? |
|
I mean its not really even a real contract but just want to make sure it being exported as a state var won't cause it to be picked up by the invariant fuzzer. Does the calling the hevm address with |
|
oh hehe, whoops I was sleepy this morning 🤦♀️. We also ignore contracts that have no code so |
This allow to simply import the hevm abstract contract in the test contracts to easily create an Instance a use some of the cheats to improve testing. Usage: