Fix lost promise fulfillment when a batch has an error response (#4126).

This commit is contained in:
Richard Moore 2023-06-07 20:09:29 -04:00
parent 11956aee34
commit 8dd21f0333

@ -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