@@ -2177,7 +2177,7 @@ def test_multiasset_txouts_syntax(
2177
2177
address = token_mint_addr .address , coins = [token ]
2178
2178
), "The token already exists"
2179
2179
2180
- # Build transaction body. The `tx_raw_output ` will be used as blueprint for assembling
2180
+ # Build transaction body. The `tx_raw_blueprint ` will be used as blueprint for assembling
2181
2181
# CLI arguments for `transaction build`.
2182
2182
tx_files = clusterlib .TxFiles (
2183
2183
signing_key_files = [issuer_addr .skey_file , token_mint_addr .skey_file ],
@@ -2199,7 +2199,7 @@ def test_multiasset_txouts_syntax(
2199
2199
mint = mint ,
2200
2200
tx_files = tx_files ,
2201
2201
)
2202
- tx_raw_output = cluster .build_raw_tx (
2202
+ tx_raw_blueprint = cluster .build_raw_tx (
2203
2203
src_address = token_mint_addr .address ,
2204
2204
tx_name = f"{ temp_template } _mint_burn" ,
2205
2205
# token minting and burning in the same TX
@@ -2208,15 +2208,15 @@ def test_multiasset_txouts_syntax(
2208
2208
fee = fee ,
2209
2209
)
2210
2210
2211
- # assemble CLI arguments for `transaction build` using data from `tx_raw_output `
2211
+ # assemble CLI arguments for `transaction build` using data from `tx_raw_blueprint `
2212
2212
2213
- assert tx_raw_output .txins
2214
- assert tx_raw_output .txouts
2215
- assert tx_raw_output .mint
2213
+ assert tx_raw_blueprint .txins
2214
+ assert tx_raw_blueprint .txouts
2215
+ assert tx_raw_blueprint .mint
2216
2216
2217
2217
# test syntax for multi-asset values and txouts, see
2218
2218
# https://github.com/input-output-hk/cardano-node/pull/2072
2219
- coin_txouts = [f"{ t .amount } { t .coin } " for t in tx_raw_output .txouts ]
2219
+ coin_txouts = [f"{ t .amount } { t .coin } " for t in tx_raw_blueprint .txouts ]
2220
2220
txout_parts = [
2221
2221
"-7000" ,
2222
2222
"8500" ,
@@ -2226,21 +2226,21 @@ def test_multiasset_txouts_syntax(
2226
2226
* coin_txouts ,
2227
2227
]
2228
2228
txout_joined = "+" .join (txout_parts )
2229
- txout_str = f"{ tx_raw_output .txouts [0 ].address } +{ txout_joined } "
2229
+ txout_str = f"{ tx_raw_blueprint .txouts [0 ].address } +{ txout_joined } "
2230
2230
2231
- txins_combined = [f"{ x .utxo_hash } #{ x .utxo_ix } " for x in tx_raw_output .txins ]
2232
- mint_str = "+" .join (f"{ x .amount } { x .coin } " for x in tx_raw_output .mint [0 ].txouts )
2231
+ txins_combined = [f"{ x .utxo_hash } #{ x .utxo_ix } " for x in tx_raw_blueprint .txins ]
2232
+ mint_str = "+" .join (f"{ x .amount } { x .coin } " for x in tx_raw_blueprint .mint [0 ].txouts )
2233
2233
out_file = (
2234
- tx_raw_output .out_file .parent
2235
- / f"{ tx_raw_output .out_file .stem } _assembled{ tx_raw_output .out_file .suffix } "
2234
+ tx_raw_blueprint .out_file .parent
2235
+ / f"{ tx_raw_blueprint .out_file .stem } _assembled{ tx_raw_blueprint .out_file .suffix } "
2236
2236
)
2237
2237
build_raw_args = [
2238
2238
"transaction" ,
2239
2239
"build-raw" ,
2240
2240
"--fee" ,
2241
- str (tx_raw_output .fee ),
2241
+ str (tx_raw_blueprint .fee ),
2242
2242
"--mint-script-file" ,
2243
- str (tx_raw_output .mint [0 ].script_file ),
2243
+ str (tx_raw_blueprint .mint [0 ].script_file ),
2244
2244
* helpers .prepend_flag ("--tx-in" , txins_combined ),
2245
2245
"--tx-out" ,
2246
2246
txout_str ,
@@ -2261,6 +2261,8 @@ def test_multiasset_txouts_syntax(
2261
2261
tx_name = f"{ temp_template } _mint_burn" ,
2262
2262
)
2263
2263
2264
+ tx_raw_output = tx_raw_blueprint ._replace (out_file = out_file )
2265
+
2264
2266
# submit signed transaction
2265
2267
cluster .submit_tx (tx_file = out_file_signed , txins = tx_raw_output .txins )
2266
2268
0 commit comments