From 8dd21f03334ffd3cdb7ac532376d51fd4130c7ab Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Wed, 7 Jun 2023 20:09:29 -0400 Subject: [PATCH] Fix lost promise fulfillment when a batch has an error response (#4126). --- src.ts/providers/provider-jsonrpc.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src.ts/providers/provider-jsonrpc.ts b/src.ts/providers/provider-jsonrpc.ts index c3828731bf..f8e885f7c6 100644 --- a/src.ts/providers/provider-jsonrpc.ts +++ b/src.ts/providers/provider-jsonrpc.ts @@ -515,7 +515,8 @@ export abstract class JsonRpcApiProvider extends AbstractProvider { // The response is an error if ("error" in resp) { - return reject(this.getRpcError(payload, resp)); + reject(this.getRpcError(payload, resp)); + continue; } // All good; send the result