Skip to content

Commit

Permalink
Fix lost promise fulfillment when a batch has an error response (ethe…
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent 9f419a0 commit c03c336
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 c03c336

Please sign in to comment.