@@ -176,20 +176,20 @@ async fn send_submit_block(
176176 }
177177
178178 if let Some ( blobs) = & block_response. data . blobs_bundle {
179- let expected_committments = & signed_blinded_block. message . body . blob_kzg_commitments ;
180- if expected_committments . len ( ) != blobs. blobs . len ( ) ||
181- expected_committments . len ( ) != blobs. commitments . len ( ) ||
182- expected_committments . len ( ) != blobs. proofs . len ( )
179+ let expected_commitments = & signed_blinded_block. message . body . blob_kzg_commitments ;
180+ if expected_commitments . len ( ) != blobs. blobs . len ( ) ||
181+ expected_commitments . len ( ) != blobs. commitments . len ( ) ||
182+ expected_commitments . len ( ) != blobs. proofs . len ( )
183183 {
184184 return Err ( PbsError :: Validation ( ValidationError :: KzgCommitments {
185- expected_blobs : expected_committments . len ( ) ,
185+ expected_blobs : expected_commitments . len ( ) ,
186186 got_blobs : blobs. blobs . len ( ) ,
187187 got_commitments : blobs. commitments . len ( ) ,
188188 got_proofs : blobs. proofs . len ( ) ,
189189 } ) ) ;
190190 }
191191
192- for ( i, comm) in expected_committments . iter ( ) . enumerate ( ) {
192+ for ( i, comm) in expected_commitments . iter ( ) . enumerate ( ) {
193193 // this is safe since we already know they are the same length
194194 if * comm != blobs. commitments [ i] {
195195 return Err ( PbsError :: Validation ( ValidationError :: KzgMismatch {
0 commit comments