diff --git a/src.ts/providers/provider-jsonrpc.ts b/src.ts/providers/provider-jsonrpc.ts index 0ba83704b7..dfb4c7a962 100644 --- a/src.ts/providers/provider-jsonrpc.ts +++ b/src.ts/providers/provider-jsonrpc.ts @@ -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 }; }