@@ -17,7 +17,7 @@ import {
1717import type { HttpRpcClientOptions } from "viem/utils" ;
1818import { z } from "zod/v4" ;
1919import { type ILogger , NetworkType } from "../sdk/index.js" ;
20- import { httpTransportConfigSchema } from "./transports.js" ;
20+ import { httpTransportOptionsSchema } from "./transports.js" ;
2121
2222export const providerConfigSchema = z . object ( {
2323 /**
@@ -35,7 +35,7 @@ export const providerConfigSchema = z.object({
3535 /**
3636 * HTTP transport options to use for this provider
3737 */
38- httpClientOptions : httpTransportConfigSchema . optional ( ) ,
38+ httpTransportOptions : httpTransportOptionsSchema . optional ( ) ,
3939} ) ;
4040
4141export type ProviderConfig = z . infer < typeof providerConfigSchema > ;
@@ -91,7 +91,7 @@ export const revolverTransportConfigSchema = z.object({
9191 /**
9292 * Default HTTP options to use for all providers, can be overridden by provider config
9393 */
94- defaultHTTPOptions : httpTransportConfigSchema . optional ( ) ,
94+ defaultHTTPOptions : httpTransportOptionsSchema . optional ( ) ,
9595 /**
9696 * Default cooldown, in milliseconds, to wait before try this transport again
9797 */
@@ -202,11 +202,11 @@ export class RevolverTransport
202202 } ;
203203
204204 const transports = config . providers . map (
205- ( { url, name, cooldown, httpClientOptions } ) : TransportEntry => ( {
205+ ( { url, name, cooldown, httpTransportOptions } ) : TransportEntry => ( {
206206 name,
207207 transport : http ( url , {
208208 ...config . defaultHTTPOptions ,
209- ...httpClientOptions ,
209+ ...httpTransportOptions ,
210210 key : name ,
211211 name : name ,
212212 onFetchRequest : this . #config. onRequest
0 commit comments