@@ -696,49 +696,50 @@ def proofs(self) -> Sequence[Bytes] | None:
696696 return proofs
697697
698698 # original cell proofs with length 4098
699- # @computed_field # type: ignore[prop-decorator]
700- # @property
701- # def cell_proofs(self) -> Sequence[Sequence[Bytes]] | Sequence[Bytes] | None:
702- # """Return a list of cells (returns None < Osaka)."""
703- # if self.wrapper_version is None:
704- # return None
705-
706- # cells: list[list[Bytes]] = []
707- # for blob in self.blob_objects:
708- # assert isinstance(blob.cells, list)
709- # cells.append(blob.cells)
710-
711- # # maybe remove below
712- # # if len(cells) == 1:
713- # # return cells[0]
714-
715- # return cells
716-
717- # shortened cell proofs of length 98 ( 48*2 + len(0x00) + len(0x03) )
718- # unlocks new error: proofs dont match cells
699+ # error: Invalid RLP.
719700 @computed_field # type: ignore[prop-decorator]
720701 @property
721- def cell_proofs (self ) -> Sequence [Bytes ] | None :
702+ def cell_proofs (self ) -> Sequence [Sequence [ Bytes ]] | Sequence [ Bytes ] | None :
722703 """Return a list of cells (returns None < Osaka)."""
723704 if self .wrapper_version is None :
724705 return None
725706
726- cells : list [Bytes ] = []
707+ cells : list [list [ Bytes ] ] = []
727708 for blob in self .blob_objects :
728709 assert isinstance (blob .cells , list )
729- # code below gives: InvalidBlobDataSize: Blob data fields are of incorrect size:
730- # cells.extend(
731- # Bytes(cell)
732- # for cell in blob.cells # Bytes(cell[:48])
733- # ) # extend unpacks the elements instead of adding it as list
710+ cells .append (blob .cells )
734711
735- # code below gives: InvalidBlobProof: Proofs do not match the blobs.
736- cells .extend (
737- Bytes (cell [:48 ]) for cell in blob .cells
738- ) # extend unpacks the elements instead of adding it as list
712+ # maybe remove below
713+ # if len(cells) == 1:
714+ # return cells[0]
739715
740716 return cells
741717
718+ # shortened cell proofs of length 98 ( 48*2 + len(0x00) + len(0x03) )
719+ # unlocks new error: proofs dont match cells
720+ # @computed_field # type: ignore[prop-decorator]
721+ # @property
722+ # def cell_proofs(self) -> Sequence[Bytes] | None:
723+ # """Return a list of cells (returns None < Osaka)."""
724+ # if self.wrapper_version is None:
725+ # return None
726+
727+ # cells: list[Bytes] = []
728+ # for blob in self.blob_objects:
729+ # assert isinstance(blob.cells, list)
730+ # # code below gives: InvalidBlobDataSize: Blob data fields are of incorrect size:
731+ # # cells.extend(
732+ # # Bytes(cell)
733+ # # for cell in blob.cells # Bytes(cell[:48])
734+ # # ) # extend unpacks the elements instead of adding it as list
735+
736+ # # code below gives: InvalidBlobProof: Proofs do not match the blobs.
737+ # cells.extend(
738+ # Bytes(cell[:48]) for cell in blob.cells
739+ # ) # extend unpacks the elements instead of adding it as list
740+
741+ # return cells
742+
742743 # just trying to match the 'before.txt' even more closely
743744 # # unlocks new error: proofs dont match cells
744745 # @computed_field # type: ignore[prop-decorator]
0 commit comments