Wider error detection for call exceptions on certain backends (#4154, #4155).

This commit is contained in:
Richard Moore 2023-06-27 23:28:57 -02:30
parent 1dc8986a33
commit 9197f9f938

@ -1165,7 +1165,7 @@ function spelunkData(value: any): null | { message: string, data: string } {
if (value == null) { return null; }
// These *are* the droids we're looking for.
if (typeof(value.message) === "string" && value.message.match("reverted") && isHexString(value.data)) {
if (typeof(value.message) === "string" && value.message.match(/revert/i) && isHexString(value.data)) {
return { message: value.message, data: value.data };
}