fix: web3.js; maxRetries no longer stripped when zero (#26345)

Co-authored-by: Mark D <83738282+markusmark1@users.noreply.github.com>
This commit is contained in:
Mark Daniel 2022-06-30 23:20:22 -07:00 committed by GitHub
parent fdb186ba3b
commit 3fcdc45092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {