@@ -207,7 +207,7 @@ Taker/Unlocker provides collateral. Collateral has been introduced in Alonzo tra
207
207
208
208
>>> builder.collaterals.append(non_nft_utxo)
209
209
210
- >>> signed_tx = builder.build_and_sign([self.extended_payment_skey ], taker_address)
210
+ >>> signed_tx = builder.build_and_sign([payment_skey_2 ], taker_address)
211
211
212
212
213
213
Uh oh! That failed. We forgot to add the taker as a `required ` signer, so that the contract knows
@@ -217,7 +217,7 @@ that they will sign the transaction::
217
217
218
218
Now lets try to resubmit this::
219
219
220
- >>> signed_tx = builder.build_and_sign([self.extended_payment_skey ], taker_address)
220
+ >>> signed_tx = builder.build_and_sign([payment_skey_2 ], taker_address)
221
221
222
222
>>> context.submit_tx(signed_tx.to_cbor())
223
223
@@ -264,7 +264,7 @@ With reference script, actual script doesn't need to be included in the transact
264
264
>>> builder.add_script_input(utxo_to_spend, datum=datum, redeemer=redeemer)
265
265
>>> take_output = TransactionOutput(taker_address, 25123456)
266
266
>>> builder.add_output(take_output)
267
- >>> signed_tx = builder.build_and_sign([extended_payment_skey ], taker_address)
267
+ >>> signed_tx = builder.build_and_sign([payment_skey ], taker_address)
268
268
269
269
Again, with the same example, we show that you can send funds to script address with inline datums directly::
270
270
@@ -288,6 +288,6 @@ With inline datum, we no longer have to include a datum within our transaction f
288
288
>>> builder.add_script_input(utxo_to_spend, redeemer=redeemer)
289
289
>>> take_output = TransactionOutput(taker_address, 25123456)
290
290
>>> builder.add_output(take_output)
291
- >>> signed_tx = builder.build_and_sign([extended_payment_skey ], taker_address)
291
+ >>> signed_tx = builder.build_and_sign([payment_skey ], taker_address)
292
292
293
293
0 commit comments