Skip to content

Commit 8dd21f0

Browse files
committed
Fix lost promise fulfillment when a batch has an error response (ethers-io#4126).
1 parent 11956ae commit 8dd21f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src.ts/providers/provider-jsonrpc.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,8 @@ export abstract class JsonRpcApiProvider extends AbstractProvider {
515515

516516
// The response is an error
517517
if ("error" in resp) {
518-
return reject(this.getRpcError(payload, resp));
518+
reject(this.getRpcError(payload, resp));
519+
continue;
519520
}
520521

521522
// All good; send the result

0 commit comments

Comments
 (0)