Skip to content

Commit

Permalink
fix parsing of ssz encoded blob sidecars
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Dec 1, 2023
1 parent 677e489 commit a859f97
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 a859f97

Please sign in to comment.