lib/network/provider/retry-proxy.js
/**
   * Extend proxy object and hook send function
   * @param {number} retries
   */
Extend proxy object and hook send function
@param {number} retries
Extend proxy object and hook send function @param { number } retries
create(retries = null) {
    retries = retries || this.retries;
    debug(`Web3:ProxyProvider:${this.provider.constructor.name}`, retries);
    const send = RetryProxy.wrapSend(
      this.provider.send.bind(this.provider),
      retries,
    );
    return new Proxy(this.provider, {
      get: (target, propKey) => (propKey === 'send' ? send : target[propKey]),
    });
  }
create ( retries = null ) { retries = retries || this . retries ; debug ( ` ${ this . provider . constructor . name } ` , retries ) ; const send = RetryProxy . wrapSend ( this . provider . send . bind ( this . provider ) , retries , ) ; return new Proxy ( this . provider , { get : ( target , propKey ) => ( propKey === 'send' ? send : target [ propKey ] ) , } ) ; }
Extend proxy object and hook send function
 @param {number} retries
Extend proxy object and hook send function @param { number } retries