Fix lost promise fulfillment when a batch has an error response (#4126).
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user