Closed rainbreak closed 5 years ago
I think it should be revert(response, size)
. Regarding the test, is there a way to check the return value of a failing call with dapp test
?
I guess I can catch it using assembly as well
Yeah I think you'll have to construct something with assembly. Also possible this isn't in hevm yet :/
Change done, test as well.
However it is not returning any value with returndatacopy
when the tx fails. It is possible is a hevm
limitation as you mentioned.
Let's resolve this hevm
issue before merging #18, just to be safe. I can take a look this week.
i.e. use
revert(0, response)
rather thanrevert(0, 0)
. Needs a test adding as well.