From 4a721a5ffd10ff3daf3413079d132c2e509ba30e Mon Sep 17 00:00:00 2001 From: marioevz Date: Mon, 23 Jan 2023 08:56:40 -0600 Subject: [PATCH] simulators/ethereum/engine: Fix nil exception --- simulators/ethereum/engine/client/hive_rpc/hive_rpc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simulators/ethereum/engine/client/hive_rpc/hive_rpc.go b/simulators/ethereum/engine/client/hive_rpc/hive_rpc.go index 4346d2d93c..25312ee993 100644 --- a/simulators/ethereum/engine/client/hive_rpc/hive_rpc.go +++ b/simulators/ethereum/engine/client/hive_rpc/hive_rpc.go @@ -336,7 +336,9 @@ func (ec *HiveRPCEngineClient) GetPayload(ctx context.Context, version int, payl if version == 2 { var response api.ExecutableDataV2 err = ec.c.CallContext(ctx, &response, rpcString, payloadId) - executableData = *response.ExecutionPayload + if response.ExecutionPayload != nil { + executableData = *response.ExecutionPayload + } blockValue = response.BlockValue } else { err = ec.c.CallContext(ctx, &executableData, rpcString, payloadId)