Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit ea9dffa

Browse files
authoredJul 1, 2022
fix: web3.js; maxRetries no longer stripped when zero (#26345)
Co-authored-by: Mark D <83738282+markusmark1@users.noreply.github.com>
1 parent f4d9f51 commit ea9dffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/connection.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4442,7 +4442,7 @@ export class Connection {
44424442
const preflightCommitment =
44434443
(options && options.preflightCommitment) || this.commitment;
44444444

4445-
if (options && options.maxRetries) {
4445+
if (options && options.maxRetries != null) {
44464446
config.maxRetries = options.maxRetries;
44474447
}
44484448
if (options && options.minContextSlot != null) {

0 commit comments

Comments
 (0)
This repository has been archived.