@@ -779,11 +779,11 @@ def _mint_tokens() -> clusterlib.TxRawOutput:
779779 _mint_tokens ()
780780 err_msg = str (excinfo .value )
781781 assert (
782+ # On cardano-node 10.0.0+
783+ re .search (rf"MaxTxSizeUTxO .* { max_tx_size } " , err_msg )
782784 # On older cardano-node releases
783- "OutputTooBigUTxO" in err_msg # For `build-raw` command
785+ or "OutputTooBigUTxO" in err_msg # For `build-raw` command
784786 or "balance of the transaction is negative" in err_msg # For `build` command
785- # On cardano-node 10.0.0+
786- or re .search (rf"MaxTxSizeUTxO \d+ { max_tx_size } " , err_msg )
787787 ), "Unexpected error message"
788788 finally :
789789 logging .disable (logging .NOTSET )
@@ -929,11 +929,11 @@ def _mint_tokens() -> clusterlib.TxRawOutput:
929929 _mint_tokens ()
930930 err_msg = str (excinfo .value )
931931 assert (
932+ # On cardano-node 10.0.0+
933+ re .search (rf"MaxTxSizeUTxO .* { max_tx_size } " , err_msg )
932934 # On older cardano-node releases
933- "OutputTooBigUTxO" in err_msg # For `build-raw` command
935+ or "OutputTooBigUTxO" in err_msg # For `build-raw` command
934936 or "balance of the transaction is negative" in err_msg # For `build` command
935- # On cardano-node 10.0.0+
936- or re .search (rf"MaxTxSizeUTxO \d+ { max_tx_size } " , err_msg )
937937 ), "Unexpected error message"
938938 finally :
939939 logging .disable (logging .NOTSET )
0 commit comments