attempt to fix serde for opt hex be u256

This commit is contained in:
realbigsean 2022-12-01 15:03:36 -05:00
parent c96234f38c
commit 2cd971c7d3
No known key found for this signature in database
GPG Key ID: B372B64D866BF8CC

View File

@ -95,8 +95,6 @@ pub struct JsonExecutionPayload<T: EthSpec> {
#[serde(with = "eth2_serde_utils::u256_hex_be")] #[serde(with = "eth2_serde_utils::u256_hex_be")]
pub base_fee_per_gas: Uint256, pub base_fee_per_gas: Uint256,
#[superstruct(only(V2))] #[superstruct(only(V2))]
#[serde(skip_serializing_if = "Option::is_none")]
#[serde(default)]
#[serde(with = "eth2_serde_utils::u256_hex_be_opt")] #[serde(with = "eth2_serde_utils::u256_hex_be_opt")]
pub excess_data_gas: Option<Uint256>, pub excess_data_gas: Option<Uint256>,
pub block_hash: ExecutionBlockHash, pub block_hash: ExecutionBlockHash,