From 3fcdc45092b969baeb7273de6596399d98277366 Mon Sep 17 00:00:00 2001 From: Mark Daniel <83738282+Mark-777-0@users.noreply.github.com> Date: Thu, 30 Jun 2022 23:20:22 -0700 Subject: [PATCH] fix: web3.js; maxRetries no longer stripped when zero (#26345) Co-authored-by: Mark D <83738282+markusmark1@users.noreply.github.com> --- web3.js/src/connection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web3.js/src/connection.ts b/web3.js/src/connection.ts index 3f20a81f0efe68..2906864b1d1e29 100644 --- a/web3.js/src/connection.ts +++ b/web3.js/src/connection.ts @@ -4442,7 +4442,7 @@ export class Connection { const preflightCommitment = (options && options.preflightCommitment) || this.commitment; - if (options && options.maxRetries) { + if (options && options.maxRetries != null) { config.maxRetries = options.maxRetries; } if (options && options.minContextSlot != null) {