Skip to content

Commit bc4ffa2

Browse files
authored
fix(rpc-types): correct BeaconExecutionPayloadV3 doc (alloy-rs#3216)
fix(rpc-types): correct BeaconExecutionPayloadV3 doc and format consistency Fixes BeaconExecutionPayloadV3 doc comment that incorrectly stated "Inner V1 payload" when the field type is BeaconExecutionPayloadV2. Also adds missing space in excess_blob_gas field doc for consistency with blob_gas_used field format.
1 parent 165f5a6 commit bc4ffa2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

crates/rpc-types-beacon/src/payload.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ pub mod beacon_payload_v2 {
383383
#[serde_as]
384384
#[derive(Debug, Serialize, Deserialize)]
385385
struct BeaconExecutionPayloadV3<'a> {
386-
/// Inner V1 payload
386+
/// Inner V2 payload
387387
#[serde(flatten)]
388388
payload_inner: BeaconExecutionPayloadV2<'a>,
389389
#[serde_as(as = "DisplayFromStr")]

crates/rpc-types-engine/src/payload.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ pub struct ExecutionPayloadV3 {
667667
/// See <https://github.com/ethereum/execution-apis/blob/fe8e13c288c592ec154ce25c534e26cb7ce0530d/src/engine/cancun.md#ExecutionPayloadV3>
668668
#[cfg_attr(feature = "serde", serde(with = "alloy_serde::quantity"))]
669669
pub blob_gas_used: u64,
670-
/// Array of hex[`u64`] representing excess blob gas, enabled with V3
670+
/// Array of hex [`u64`] representing excess blob gas, enabled with V3
671671
/// See <https://github.com/ethereum/execution-apis/blob/fe8e13c288c592ec154ce25c534e26cb7ce0530d/src/engine/cancun.md#ExecutionPayloadV3>
672672
#[cfg_attr(feature = "serde", serde(with = "alloy_serde::quantity"))]
673673
pub excess_blob_gas: u64,

0 commit comments

Comments
 (0)