@@ -96,9 +96,9 @@ def get_filepath(fork: str, seed: int, timestamp: int):
9696 @staticmethod
9797 def NewBlob (fork : Fork , seed : int = 0 , timestamp : int = 0 ) -> "Blob" : # noqa: N802
9898 """Construct Blob instances. Fork-specific logic is encapsulated within nested functions.""" # noqa: E501
99- assert fork .blobs_supported () , (
99+ assert fork .engine_get_blobs_version () is not None , (
100100 f"You provided fork { fork .name ()} but it does not support blobs!"
101- ) # TODO: why does mypy complain? this line works
101+ ) # TODO: why does mypy say '"type[BaseFork]" has no attribute "engine_get_blobs_version"'?
102102
103103 fork_str : str = fork .name ().lower ()
104104
@@ -419,39 +419,39 @@ def corrupt_byte(b: bytes) -> Bytes:
419419print (type (b .proof ), len (b .proof ))
420420print (BYTES_PER_FIELD_ELEMENT )
421421print (len (b .data ))
422- b .write_to_file ()
423- c : Blob = Blob .LoadBlobFromFile ("blob_" + "osaka" + "_" + str (myseed ) + "_" + str (mytimestamp ))
424- assert b .data == c .data
425- assert b .commitment == c .commitment
426- assert b .proof == c .proof
427- assert b .cells == c .cells
428- assert b .versioned_hash == c .versioned_hash
429- assert b .name == c .name
430- assert b .fork == c .fork
431- assert b .timestamp == c .timestamp
422+ # b.write_to_file()
423+ # c: Blob = Blob.LoadBlobFromFile("blob_" + "osaka" + "_" + str(myseed) + "_" + str(mytimestamp))
424+ # assert b.data == c.data
425+ # assert b.commitment == c.commitment
426+ # assert b.proof == c.proof
427+ # assert b.cells == c.cells
428+ # assert b.versioned_hash == c.versioned_hash
429+ # assert b.name == c.name
430+ # assert b.fork == c.fork
431+ # assert b.timestamp == c.timestamp
432432d : Blob = Blob .NewBlob (myprague , myseed , 123 )
433- d .write_to_file ()
433+ # d.write_to_file()
434434e : Blob = Blob .NewBlob (myprague , myseed , 123 )
435435print ("Line above should say blob already existed and was loaded from file" )
436436ee : Blob = Blob .NewBlob (myprague , myseed , 1234 )
437437newtimestamp = 999999
438438f : Blob = Blob .NewBlob (mycancun , 1337 , newtimestamp )
439- f .write_to_file ()
439+ # f.write_to_file()
440440h : Blob = Blob .NewBlob (myosaka , myseed )
441- h .write_to_file ()
441+ # h.write_to_file()
442442zz : Blob = Blob .NewBlob (myosaka , myseed )
443443print ("Line above should say blob already existed and was loaded from file" )
444444# you can load a blob either via just filename or via absolute path or via relative path (cwd is ./src/ethereum_test_types) # noqa: E501
445- yyy : Blob = Blob .LoadBlobFromFile ("blob_cancun_1337_999999.json" )
446- # yyyy: Blob = Blob.LoadBlobFromFile(
447- # "/home/user/Documents/execution-spec-tests/tests/cancun/eip4844_blobs/static_blobs/blob_cancun_1337.json" # noqa: E501
448- # ) # you must replace user with ur actual username as $USER not supported here
449- yyyyy : Blob = Blob .LoadBlobFromFile (
450- "tests/cancun/eip4844_blobs/static_blobs/blob_cancun_1337_999999.json"
451- )
452- zzzzzzz : Blob = Blob .LoadBlobFromFile (
453- "./tests/cancun/eip4844_blobs/static_blobs/blob_cancun_1337_999999.json"
454- )
445+ # yyy: Blob = Blob.LoadBlobFromFile("blob_cancun_1337_999999.json")
446+ # # yyyy: Blob = Blob.LoadBlobFromFile(
447+ # # "/home/user/Documents/execution-spec-tests/tests/cancun/eip4844_blobs/static_blobs/blob_cancun_1337.json" # noqa: E501
448+ # # ) # you must replace user with ur actual username as $USER not supported here
449+ # yyyyy: Blob = Blob.LoadBlobFromFile(
450+ # "tests/cancun/eip4844_blobs/static_blobs/blob_cancun_1337_999999.json"
451+ # )
452+ # zzzzzzz: Blob = Blob.LoadBlobFromFile(
453+ # "./tests/cancun/eip4844_blobs/static_blobs/blob_cancun_1337_999999.json"
454+ # )
455455
456456
457457# test proof corruption
0 commit comments