Skip to content

Commit

Permalink
Merge pull request #95 from pk910/pk910/fix-blob-sidecars
Browse files Browse the repository at this point in the history
Fix parsing of ssz encoded blob sidecars
  • Loading branch information
mcdee authored Dec 1, 2023
2 parents 677e489 + a859f97 commit 92a78c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/blobsidecars.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type BlobSidecars struct {
// UnmarshalSSZ ssz unmarshals the BlobSidecars object.
// This is a hand-crafted function, as automatic generation does not support immediate arrays.
func (b *BlobSidecars) UnmarshalSSZ(buf []byte) error {
num, err := ssz.DivideInt2(len(buf), 131256, 6)
num, err := ssz.DivideInt2(len(buf), 131928, 6)
if err != nil {
return err
}
Expand All @@ -35,7 +35,7 @@ func (b *BlobSidecars) UnmarshalSSZ(buf []byte) error {
if b.Sidecars[ii] == nil {
b.Sidecars[ii] = new(deneb.BlobSidecar)
}
if err = b.Sidecars[ii].UnmarshalSSZ(buf[ii*131256 : (ii+1)*131256]); err != nil {
if err = b.Sidecars[ii].UnmarshalSSZ(buf[ii*131928 : (ii+1)*131928]); err != nil {
return err
}
}
Expand Down

0 comments on commit 92a78c9

Please sign in to comment.