Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell committed Oct 19, 2024
1 parent 0de7a9c commit b1b984a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/eips/src/eip4844/sidecar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl BlobTransactionSidecarItem {

/// Verify the blob sidecar against its [IndexedBlobHash].
pub fn verify_blob(&self, hash: &IndexedBlobHash) -> Result<(), BlobTransactionValidationError> {
if self.index != hash.number {
if self.index != hash.index {
let blob_hash_part = B256::from_slice(&self.blob[0..32]);
return Err(BlobTransactionValidationError::WrongVersionedHash {
have: blob_hash_part,
Expand Down

0 comments on commit b1b984a

Please sign in to comment.