<p>You can checkout my repository that has working code on the testnet.  It is well documented and I also have a video of running the plutus code on the testnet.</p>
<p><a href="https://github.com/lley154/cardano-lottery" rel="nofollow noreferrer">https://github.com/lley154/cardano-lottery</a></p>
<p>Cheers,</p>
<p>Lawrence</p>

CC BY-SA 4.0
2022-07-28T17:38:49.337Z
2022-07-28T17:38:49.337Z
lley154
<p>Until the Vasil Hardfork plutus scripts are attached to every transaction that spends from that contract. An example of how that can be done via the <code>cardano-cli</code> can be seen <a href="https://docs.cardano.org/plutus/Plutus-transactions" rel="nofollow noreferrer">here</a></p>
<p>Once, Vasil HF has gone through you can actually store your plutus script on-chain and jsut use a script reference instead of attaching it to every tx.</p>

CC BY-SA 4.0
2022-07-28T17:37:47.933Z
2022-07-28T17:37:47.933Z
Will
<p>I'm have really trouble finding material that teach how to deploy a contract. Does someone here has already successfully deployed a smart-contract to the cardano test/mainnet? I need to know the steps!</p>

<plutus>
Deploying smart-contract
# Deploying smart-contract

(Asked by: username_0 on 2022-07-28)

I'm have really trouble finding material that teach how to deploy a contract. Does someone here has already successfully deployed a smart-contract to the cardano test/mainnet? I need to know the steps!

**Tags:** plutus

---

## 2 answers

### Answer by username_1 on 2022-07-28. Score: 1 | Accepted answer

You can checkout my repository that has working code on the testnet. It is well documented and I also have a video of running the plutus code on the testnet.

<https://github.com/lley154/cardano-lottery>

Cheers,

Lawrence


---

### Answer by username_2 on 2022-07-28. Score: 0

Until the Vasil Hardfork plutus scripts are attached to every transaction that spends from that contract. An example of how that can be done via the `cardano-cli` can be seen [here](https://docs.cardano.org/plutus/Plutus-transactions)

Once, Vasil HF has gone through you can actually store your plutus script on-chain and jsut use a script reference instead of attaching it to every tx.


---

