From 280a76e29784c5ef282f326ab11881fc51cf9e97 Mon Sep 17 00:00:00 2001 From: Ss5h Date: Fri, 16 Jun 2023 14:26:16 +0900 Subject: [PATCH] Update provider-jsonrpc.ts fix revert message match in spelunkData --- src.ts/providers/provider-jsonrpc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src.ts/providers/provider-jsonrpc.ts b/src.ts/providers/provider-jsonrpc.ts index 021910cf13..680e69416f 100644 --- a/src.ts/providers/provider-jsonrpc.ts +++ b/src.ts/providers/provider-jsonrpc.ts @@ -1158,7 +1158,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 }; }