@pytest.mark.parametrize("tx_gas",[500_000],ids=[""])# Increase gas to account for contract creation@pytest.mark.exception_test@pytest.mark.valid_from("Cancun")deftest_invalid_blob_tx_contract_creation(blockchain_test:BlockchainTestFiller,pre:Alloc,env:Environment,txs:List[Transaction],header_verify:Optional[Header],):"""Reject blocks that include blob transactions that have nil to value (contract creating)."""assertlen(txs)==1asserttxs[0].blob_versioned_hashesisnotNoneandlen(txs[0].blob_versioned_hashes)==1# Replace the transaction with a contract creating one, only in the RLP versioncontract_creating_tx=txs[0].copy(to=None).with_signature_and_sender()txs[0].rlp_override=contract_creating_tx.rlp()blockchain_test(pre=pre,post={},blocks=[Block(txs=txs,exception=[BlockException.RLP_STRUCTURES_ENCODING,TransactionException.TYPE_3_TX_CONTRACT_CREATION,],header_verify=header_verify,# Skipped due to the T8N not receiving the invalid transaction,# instead we are passing a valid transaction to T8N and then the transaction# is replaced directly in the block RLP.skip_exception_verification=True,)],genesis_environment=env,)