@@ -37,7 +37,7 @@ def test_plutus_v1(self):
37
37
print (signed_tx )
38
38
print (signed_tx .to_cbor ())
39
39
print ("############### Submitting transaction ###############" )
40
- self .chain_context .submit_tx (signed_tx . to_cbor () )
40
+ self .chain_context .submit_tx (signed_tx )
41
41
time .sleep (3 )
42
42
43
43
# ----------- Fund taker a collateral UTxO ---------------
@@ -55,14 +55,14 @@ def test_plutus_v1(self):
55
55
print (signed_tx )
56
56
print (signed_tx .to_cbor ())
57
57
print ("############### Submitting transaction ###############" )
58
- self .chain_context .submit_tx (signed_tx . to_cbor () )
58
+ self .chain_context .submit_tx (signed_tx )
59
59
time .sleep (3 )
60
60
61
61
# ----------- Taker take ---------------
62
62
63
63
redeemer = Redeemer (42 )
64
64
65
- utxo_to_spend = self .chain_context .utxos (str ( script_address ) )[0 ]
65
+ utxo_to_spend = self .chain_context .utxos (script_address )[0 ]
66
66
67
67
taker_address = Address (self .extended_payment_vkey .hash (), network = self .NETWORK )
68
68
@@ -75,7 +75,7 @@ def test_plutus_v1(self):
75
75
builder .add_output (take_output )
76
76
77
77
non_nft_utxo = None
78
- for utxo in self .chain_context .utxos (str ( taker_address ) ):
78
+ for utxo in self .chain_context .utxos (taker_address ):
79
79
# multi_asset should be empty for collateral utxo
80
80
if not utxo .output .amount .multi_asset :
81
81
non_nft_utxo = utxo
@@ -89,7 +89,7 @@ def test_plutus_v1(self):
89
89
print (signed_tx )
90
90
print (signed_tx .to_cbor ())
91
91
print ("############### Submitting transaction ###############" )
92
- self .chain_context .submit_tx (signed_tx . to_cbor () )
92
+ self .chain_context .submit_tx (signed_tx )
93
93
94
94
self .assert_output (taker_address , take_output )
95
95
@@ -121,7 +121,7 @@ def test_plutus_v2_datum_hash(self):
121
121
print (signed_tx )
122
122
print (signed_tx .to_cbor ())
123
123
print ("############### Submitting transaction ###############" )
124
- self .chain_context .submit_tx (signed_tx . to_cbor () )
124
+ self .chain_context .submit_tx (signed_tx )
125
125
time .sleep (3 )
126
126
127
127
# ----------- Taker take ---------------
@@ -131,7 +131,7 @@ def test_plutus_v2_datum_hash(self):
131
131
utxo_to_spend = None
132
132
133
133
# Speed the utxo that doesn't have datum/datum_hash or script attached
134
- for utxo in self .chain_context .utxos (str ( script_address ) ):
134
+ for utxo in self .chain_context .utxos (script_address ):
135
135
if not utxo .output .script and (
136
136
utxo .output .datum_hash == datum_hash (datum )
137
137
or utxo .output .datum == datum
@@ -150,7 +150,7 @@ def test_plutus_v2_datum_hash(self):
150
150
builder .add_output (take_output )
151
151
152
152
non_nft_utxo = None
153
- for utxo in self .chain_context .utxos (str ( taker_address ) ):
153
+ for utxo in self .chain_context .utxos (taker_address ):
154
154
# multi_asset should be empty for collateral utxo
155
155
if not utxo .output .amount .multi_asset :
156
156
non_nft_utxo = utxo
@@ -164,7 +164,7 @@ def test_plutus_v2_datum_hash(self):
164
164
print (signed_tx )
165
165
print (signed_tx .to_cbor ())
166
166
print ("############### Submitting transaction ###############" )
167
- self .chain_context .submit_tx (signed_tx . to_cbor () )
167
+ self .chain_context .submit_tx (signed_tx )
168
168
169
169
self .assert_output (taker_address , take_output )
170
170
@@ -198,7 +198,7 @@ def test_plutus_v2_inline_script_inline_datum(self):
198
198
print (signed_tx )
199
199
print (signed_tx .to_cbor ())
200
200
print ("############### Submitting transaction ###############" )
201
- self .chain_context .submit_tx (signed_tx . to_cbor () )
201
+ self .chain_context .submit_tx (signed_tx )
202
202
time .sleep (3 )
203
203
204
204
# ----------- Taker take ---------------
@@ -208,7 +208,7 @@ def test_plutus_v2_inline_script_inline_datum(self):
208
208
utxo_to_spend = None
209
209
210
210
# Speed the utxo that has both inline script and inline datum
211
- for utxo in self .chain_context .utxos (str ( script_address ) ):
211
+ for utxo in self .chain_context .utxos (script_address ):
212
212
if utxo .output .datum and utxo .output .script :
213
213
utxo_to_spend = utxo
214
214
break
@@ -225,9 +225,9 @@ def test_plutus_v2_inline_script_inline_datum(self):
225
225
226
226
print ("############### Transaction created ###############" )
227
227
print (signed_tx )
228
- print (signed_tx . to_cbor () )
228
+ print (signed_tx )
229
229
print ("############### Submitting transaction ###############" )
230
- self .chain_context .submit_tx (signed_tx . to_cbor () )
230
+ self .chain_context .submit_tx (signed_tx )
231
231
232
232
self .assert_output (taker_address , take_output )
233
233
@@ -259,7 +259,7 @@ def test_plutus_v2_ref_script(self):
259
259
print (signed_tx )
260
260
print (signed_tx .to_cbor ())
261
261
print ("############### Submitting transaction ###############" )
262
- self .chain_context .submit_tx (signed_tx . to_cbor () )
262
+ self .chain_context .submit_tx (signed_tx )
263
263
time .sleep (3 )
264
264
265
265
# ----------- Send ADA to the same script address without datum or script ---------------
@@ -276,7 +276,7 @@ def test_plutus_v2_ref_script(self):
276
276
print (signed_tx )
277
277
print (signed_tx .to_cbor ())
278
278
print ("############### Submitting transaction ###############" )
279
- self .chain_context .submit_tx (signed_tx . to_cbor () )
279
+ self .chain_context .submit_tx (signed_tx )
280
280
time .sleep (3 )
281
281
282
282
# ----------- Taker take ---------------
@@ -286,7 +286,7 @@ def test_plutus_v2_ref_script(self):
286
286
utxo_to_spend = None
287
287
288
288
# Spend the utxo that doesn't have datum/datum_hash or script attached
289
- for utxo in self .chain_context .utxos (str ( script_address ) ):
289
+ for utxo in self .chain_context .utxos (script_address ):
290
290
if not utxo .output .script and (
291
291
utxo .output .datum_hash == datum_hash (datum )
292
292
or datum_hash (utxo .output .datum ) == datum_hash (datum )
@@ -308,6 +308,6 @@ def test_plutus_v2_ref_script(self):
308
308
print (signed_tx )
309
309
print (signed_tx .to_cbor ())
310
310
print ("############### Submitting transaction ###############" )
311
- self .chain_context .submit_tx (signed_tx . to_cbor () )
311
+ self .chain_context .submit_tx (signed_tx )
312
312
313
313
self .assert_output (taker_address , take_output )
0 commit comments