Skip to content

Commit 2500507

Browse files
committed
added comment
1 parent 4d09cf9 commit 2500507

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/ethereum_test_types/transaction_types.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,8 @@ def proofs(self) -> Sequence[Bytes] | None:
696696
return proofs
697697

698698
# original cell proofs with length 4098
699-
# error: Invalid RLP.
699+
# error: InvalidBlobDataSize: Blob data fields are of incorrect size.
700+
# -> i think its cuz each cell_proof has length 4098, but for some reason it wants length 98 (but ofc if we just shorten it it will expect a different proof)
700701
@computed_field # type: ignore[prop-decorator]
701702
@property
702703
def cell_proofs(self) -> Sequence[Sequence[Bytes]] | Sequence[Bytes] | None:
@@ -709,9 +710,9 @@ def cell_proofs(self) -> Sequence[Sequence[Bytes]] | Sequence[Bytes] | None:
709710
assert isinstance(blob.cells, list)
710711
cells.append(blob.cells)
711712

712-
# maybe remove below
713-
# if len(cells) == 1:
714-
# return cells[0]
713+
# if you remove below you instead get error: Invalid RLP. (which means getting what we have to work NWT that hold many blobs will be even more work) # noqa: E501
714+
if len(cells) == 1:
715+
return cells[0]
715716

716717
return cells
717718

0 commit comments

Comments
 (0)