From 8f1ef50aa26e8280855d2cb658e9970bc5e7c489 Mon Sep 17 00:00:00 2001 From: Enrico Del Fante Date: Tue, 24 Jan 2023 09:44:32 +0100 Subject: [PATCH] fix ExecutionPayloadV3 serialization (#6725) --- .../ethereum/executionclient/schema/ExecutionPayloadV3.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/schema/ExecutionPayloadV3.java b/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/schema/ExecutionPayloadV3.java index 8980d39b7e3..f67fdd9fe0e 100644 --- a/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/schema/ExecutionPayloadV3.java +++ b/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/schema/ExecutionPayloadV3.java @@ -16,11 +16,15 @@ import static com.google.common.base.Preconditions.checkNotNull; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.util.List; import java.util.stream.Collectors; import org.apache.tuweni.bytes.Bytes; import org.apache.tuweni.bytes.Bytes32; import org.apache.tuweni.units.bigints.UInt256; +import tech.pegasys.teku.ethereum.executionclient.serialization.UInt256AsHexDeserializer; +import tech.pegasys.teku.ethereum.executionclient.serialization.UInt256AsHexSerializer; import tech.pegasys.teku.infrastructure.bytes.Bytes20; import tech.pegasys.teku.infrastructure.ssz.collections.impl.SszByteListImpl; import tech.pegasys.teku.infrastructure.unsigned.UInt64; @@ -30,6 +34,8 @@ import tech.pegasys.teku.spec.datastructures.execution.versions.eip4844.ExecutionPayloadEip4844; public class ExecutionPayloadV3 extends ExecutionPayloadV2 { + @JsonSerialize(using = UInt256AsHexSerializer.class) + @JsonDeserialize(using = UInt256AsHexDeserializer.class) public final UInt256 excessDataGas; public ExecutionPayloadV3(