Skip to content

Commit

Permalink
Fix lost promise fulfillment when a batch has an error response (#4126).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jun 8, 2023
1 parent 11956ae commit 8dd21f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src.ts/providers/provider-jsonrpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8dd21f0

Please sign in to comment.