@@ -890,7 +890,8 @@ def process_general_purpose_requests(
890890 """
891891 # Requests are to be in ascending order of request type
892892 requests_from_execution : List [Bytes ] = []
893- requests_from_execution .append (DEPOSIT_REQUEST_TYPE + deposit_requests )
893+ if len (deposit_requests ) > 0 :
894+ requests_from_execution .append (DEPOSIT_REQUEST_TYPE + deposit_requests )
894895
895896 system_withdrawal_tx_output = process_system_transaction (
896897 WITHDRAWAL_REQUEST_PREDEPLOY_ADDRESS ,
@@ -907,9 +908,10 @@ def process_general_purpose_requests(
907908 excess_blob_gas ,
908909 )
909910
910- requests_from_execution .append (
911- WITHDRAWAL_REQUEST_TYPE + system_withdrawal_tx_output .return_data
912- )
911+ if len (system_withdrawal_tx_output .return_data ) > 0 :
912+ requests_from_execution .append (
913+ WITHDRAWAL_REQUEST_TYPE + system_withdrawal_tx_output .return_data
914+ )
913915
914916 system_consolidation_tx_output = process_system_transaction (
915917 CONSOLIDATION_REQUEST_PREDEPLOY_ADDRESS ,
@@ -926,9 +928,11 @@ def process_general_purpose_requests(
926928 excess_blob_gas ,
927929 )
928930
929- requests_from_execution .append (
930- CONSOLIDATION_REQUEST_TYPE + system_consolidation_tx_output .return_data
931- )
931+ if len (system_consolidation_tx_output .return_data ) > 0 :
932+ requests_from_execution .append (
933+ CONSOLIDATION_REQUEST_TYPE
934+ + system_consolidation_tx_output .return_data
935+ )
932936
933937 return requests_from_execution
934938
0 commit comments