You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the stable.donate() function is indeed expected to revert, but since sUSD.balanceOf(users[1]) does succeed the expectRevert() will make the test fail, with [FAIL: next call did not revert as expected].
An easy workaround is though to simply rewrite the order:
As an example the following lines:
the
stable.donate()
function is indeed expected to revert, but sincesUSD.balanceOf(users[1])
does succeed theexpectRevert()
will make the test fail, with[FAIL: next call did not revert as expected]
.An easy workaround is though to simply rewrite the order:
I'm unsure if this is expected behavior, but I find it quite unintuitive.
The text was updated successfully, but these errors were encountered: