Skip to content

Commit

Permalink
allow to pass config to seth builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Aug 28, 2024
1 parent c0f3dac commit bb48d6e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions seth/client_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ func NewClientBuilder() *ClientBuilder {
}
}

// NewClientBuilderWithConfig creates a new ClientBuilder with a provided config.
func NewClientBuilderWithConfig(config *Config) *ClientBuilder {
return &ClientBuilder{
config: config,
}
}

// WithRpcUrl sets the RPC URL for the config.
// Default value is an empty string (which is an incorrect value).
func (c *ClientBuilder) WithRpcUrl(url string) *ClientBuilder {
Expand Down

0 comments on commit bb48d6e

Please sign in to comment.