We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3e373ce + 41cac58 commit 17eb5aaCopy full SHA for 17eb5aa
execution/evm/execution.go
@@ -204,8 +204,10 @@ func NewEngineExecutionClient(
204
return nil, err
205
}
206
207
+ // Create Engine RPC with optional HTTP client and JWT auth
208
+ // Compose engine options: pass-through rpcOpts plus JWT auth
209
engineOptions := make([]rpc.ClientOption, len(rpcOpts))
- copy(engineOptions, rpcOpts)
210
+ copy(engineOptions, rpcOpts) // copy to avoid using same backing array from rpcOpts.
211
engineOptions = append(engineOptions, rpc.WithHTTPAuth(func(h http.Header) error {
212
authToken, err := getAuthToken(secret)
213
if err != nil {
0 commit comments