Skip to content

Commit

Permalink
fix: web3.js; maxRetries no longer stripped when zero (#26345)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark D <83738282+markusmark1@users.noreply.github.com>
  • Loading branch information
Mark-777-0 and Mark-777-0 committed Jul 1, 2022
1 parent fdb186b commit 3fcdc45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web3.js/src/connection.ts
Expand Up @@ -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) {
Expand Down

0 comments on commit 3fcdc45

Please sign in to comment.