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:
parent
fdb186ba3b
commit
3fcdc45092
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue