Skip to content

Commit cd15ad4

Browse files
committed
fix proofs field name in BlobsBundleV2
1 parent 0c22fa1 commit cd15ad4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ pub struct BlobsBundleV2 {
858858
/// All commitments in the bundle.
859859
pub commitments: Vec<alloy_consensus::Bytes48>,
860860
/// All cell proofs in the bundle.
861-
pub cell_proofs: Vec<alloy_consensus::Bytes48>,
861+
pub proofs: Vec<alloy_consensus::Bytes48>,
862862
/// All blobs in the bundle.
863863
pub blobs: Vec<alloy_consensus::Blob>,
864864
}
@@ -868,16 +868,16 @@ impl BlobsBundleV2 {
868868
///
869869
/// This folds the sidecar fields into single commit, proof, and blob vectors.
870870
pub fn new(sidecars: impl IntoIterator<Item = BlobTransactionSidecarEip7594>) -> Self {
871-
let (commitments, cell_proofs, blobs) = sidecars.into_iter().fold(
871+
let (commitments, proofs, blobs) = sidecars.into_iter().fold(
872872
(Vec::new(), Vec::new(), Vec::new()),
873-
|(mut commitments, mut cell_proofs, mut blobs), sidecar| {
873+
|(mut commitments, mut proofs, mut blobs), sidecar| {
874874
commitments.extend(sidecar.commitments);
875-
cell_proofs.extend(sidecar.cell_proofs);
875+
proofs.extend(sidecar.cell_proofs);
876876
blobs.extend(sidecar.blobs);
877-
(commitments, cell_proofs, blobs)
877+
(commitments, proofs, blobs)
878878
},
879879
);
880-
Self { commitments, cell_proofs, blobs }
880+
Self { commitments, proofs, blobs }
881881
}
882882

883883
/// Returns a new empty blobs bundle.
@@ -896,7 +896,7 @@ impl BlobsBundleV2 {
896896
pub fn take(&mut self, len: usize) -> (Vec<Bytes48>, Vec<Bytes48>, Vec<Blob>) {
897897
(
898898
self.commitments.drain(0..len).collect(),
899-
self.cell_proofs.drain(0..len * CELLS_PER_EXT_BLOB).collect(),
899+
self.proofs.drain(0..len * CELLS_PER_EXT_BLOB).collect(),
900900
self.blobs.drain(0..len).collect(),
901901
)
902902
}

0 commit comments

Comments
 (0)