Skip to content

Commit 69e9079

Browse files
committed
Fix keys in plutus tutorial
1 parent 33c0b4b commit 69e9079

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source/guides/plutus.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ Taker/Unlocker provides collateral. Collateral has been introduced in Alonzo tra
207207

208208
>>> builder.collaterals.append(non_nft_utxo)
209209

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)
211211

212212

213213
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::
217217

218218
Now lets try to resubmit this::
219219

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)
221221

222222
>>> context.submit_tx(signed_tx.to_cbor())
223223

@@ -264,7 +264,7 @@ With reference script, actual script doesn't need to be included in the transact
264264
>>> builder.add_script_input(utxo_to_spend, datum=datum, redeemer=redeemer)
265265
>>> take_output = TransactionOutput(taker_address, 25123456)
266266
>>> 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)
268268

269269
Again, with the same example, we show that you can send funds to script address with inline datums directly::
270270

@@ -288,6 +288,6 @@ With inline datum, we no longer have to include a datum within our transaction f
288288
>>> builder.add_script_input(utxo_to_spend, redeemer=redeemer)
289289
>>> take_output = TransactionOutput(taker_address, 25123456)
290290
>>> 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)
292292

293293

0 commit comments

Comments
 (0)