Skip to content

fix minor inaccuracies in the plutus smart contract tutorial #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions docs/source/guides/plutus.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Similar to `Transaction guide <../guides/transaction.html>`_, we build a chain c
>>> from pycardano import BlockFrostChainContext
>>> context = BlockFrostChainContext("your_blockfrost_project_id", base_url=ApiUrls.preprod.value)

Step 2
Step 4

Create script address::

Expand All @@ -133,10 +133,12 @@ Create script address::
... plutus_script_hash,
... Transaction,
... TransactionBuilder,
... TransactionOutput,
... PlutusData,
... Redeemer,
... PlutusV2Script,
... Network,
... datum_hash,
... )

>>> # This artifact was generated in step 2
Expand All @@ -148,7 +150,7 @@ Create script address::
>>> network = Network.TESTNET
>>> script_address = Address(script_hash, network=network)

Step 3
Step 5

Giver/Locker sends funds to script address.
We will attach the public key hash of a receiver address as datum to the utxo.
Expand Down Expand Up @@ -178,7 +180,7 @@ Build, sign and submit the transaction:
>>> signed_tx = builder.build_and_sign([payment_skey], giver_address)
>>> context.submit_tx(signed_tx.to_cbor())

Step 4
Step 6

Taker/Unlocker sends transaction to consume funds. Here we specify the redeemer tag as spend and pass in no special redeemer, as it is being ignored by the contract.::

Expand Down