Skip to content

Commit 17eb5aa

Browse files
committed
chore: merge main
2 parents 3e373ce + 41cac58 commit 17eb5aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

execution/evm/execution.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,10 @@ func NewEngineExecutionClient(
204204
return nil, err
205205
}
206206

207+
// Create Engine RPC with optional HTTP client and JWT auth
208+
// Compose engine options: pass-through rpcOpts plus JWT auth
207209
engineOptions := make([]rpc.ClientOption, len(rpcOpts))
208-
copy(engineOptions, rpcOpts)
210+
copy(engineOptions, rpcOpts) // copy to avoid using same backing array from rpcOpts.
209211
engineOptions = append(engineOptions, rpc.WithHTTPAuth(func(h http.Header) error {
210212
authToken, err := getAuthToken(secret)
211213
if err != nil {

0 commit comments

Comments
 (0)