From c03c33670631bce2e01fd461f34f0d14612e4144 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