clean up code around setting geth client headers (#11748)

This commit is contained in:
Roberto Bayardo
2023-09-26 08:15:28 -07:00
committed by GitHub
parent 0919b2245f
commit a46370f5bf
3 changed files with 16 additions and 17 deletions

View File

@@ -124,7 +124,7 @@ func New(opts ...Option) (*Builder, error) {
endpoint := network.HttpEndpoint(p.cfg.destinationUrl.String())
endpoint.Auth.Method = authorization.Bearer
endpoint.Auth.Value = p.cfg.secret
execClient, err := network.NewExecutionRPCClient(context.Background(), endpoint)
execClient, err := network.NewExecutionRPCClient(context.Background(), endpoint, nil)
if err != nil {
return nil, err
}