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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
@zemse
In my tests, I do the following:
The
execute
function in the contract calls another contract which reverts, but I don't fail tx and use solidity'scall
to still return the result.event.args.execResults
ends up to be:0x08c379a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000014416374696f6e457865637574653a526576657274000000000000000000000000
The first 4 bytes are sig of
Error(string)
. Then comes offset, then comes string length, then comes string.What I need to do is in my tests, compare if this is actually
ActionExecute:Revert
revert message.How could I do it ?
Beta Was this translation helpful? Give feedback.
All reactions