From be3e6b14433bc88ad8c0c98a4f3a2a627cea6b99 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Thu, 10 Oct 2024 17:21:21 -0400 Subject: [PATCH] Fixed bug in JSON-RPC error checking (#4827, #4837, #4851). --- 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 fb993249ae..f59cc77ecb 100644 --- a/src.ts/providers/provider-jsonrpc.ts +++ b/src.ts/providers/provider-jsonrpc.ts @@ -382,7 +382,7 @@ export class JsonRpcSigner extends AbstractSigner { // If the network changed: calling again will also fail // If unsupported: likely destroyed if (isError(error, "CANCELLED") || isError(error, "BAD_DATA") || - isError(error, "NETWORK_ERROR" || isError(error, "UNSUPPORTED_OPERATION"))) { + isError(error, "NETWORK_ERROR") || isError(error, "UNSUPPORTED_OPERATION")) { if (error.info == null) { error.info = { }; } error.info.sendTransactionHash = hash;