Skip to content

Commit 64852f9

Browse files
authored
Merge pull request #45 from PiotrNap/patch-5
Update smart-contracts.mdx
2 parents 7fef953 + 46204ae commit 64852f9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

apps/docs/content/docs/apis/txbuilder/smart-contracts.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ icon: NewspaperIcon
55
---
66
import Link from "fumadocs-core/link";
77

8-
In this guide, you will understand all logics you need to know for interacting with smart contracts with `MeshTxBuilder`.
8+
In this guide, you will understand how to interact with smart contracts through `MeshTxBuilder`.
99

10-
In the code snippet, you will find `txBuilder`, which is an instance of `MeshTxBuilder`, a powerful low-level APIs that allows you to build transactions. Learn how to initialize MeshTxBuilder.
10+
In the code snippet, you will find `txBuilder`, which is an instance of `MeshTxBuilder`, with powerful low-level APIs that allow you to build transactions. Here's how to initialize **MeshTxBuilder**.
1111

1212
```tsx
1313
const txBuilder = new MeshTxBuilder({
@@ -16,7 +16,7 @@ const txBuilder = new MeshTxBuilder({
1616
});
1717
```
1818

19-
In Cardano, whenever you need the nodes' computing power to execute a smart contract, you need to provide collateral to prevent spamming. You will see this is everywhere when script execution is needed in below's examples, and here's how you can do so:
19+
In Cardano, whenever you need the nodes' computing power to execute a smart contract, you need to provide collateral to prevent spamming. You will see this is everywhere when script execution is needed in examples below, and here's how you can do so:
2020

2121
```tsx
2222
txBuilder
@@ -28,7 +28,7 @@ txBuilder
2828

2929
Locking assets meaning sending value to a script address with datum.
3030

31-
Same as `Transaction` demo, we will lock selected assets from your wallet in an `always succeed` smart contract. We use one API to represent sending value, another API to represent attaching datum to complete the locking assets process:
31+
Same as the `Transaction` demo, we will lock selected assets from your wallet in an always-succeed smart contract. We use one API to represent sending value, another API to represent attaching datum to complete the locking assets process:
3232

3333
```tsx
3434
// For inline datumtxBuilder
@@ -90,7 +90,7 @@ The lower level APIs support providing your datum in all Mesh `Data` (default),
9090

9191
## Unlock Assets
9292

93-
Unlocking with `MeshTxBuilder` starts with anyone of the below script version indicators:
93+
Unlocking assets from a Plutus script, with `MeshTxBuilder`, starts with any of the following script version indicators:
9494

9595
```tsx
9696
.spendingPlutusScriptV1()
@@ -220,7 +220,7 @@ txBuilder
220220

221221
## Minting Assets with Plutus Script
222222

223-
Minting Plutus tokens with `MeshTxBuilder` starts with anyone of the below script version indicators:
223+
Minting Plutus tokens with `MeshTxBuilder` starts with any of the following script version indicators:
224224

225225
```tsx
226226
.mintPlutusScriptV1()
@@ -334,4 +334,4 @@ For all smart contract executions, you have option to provide script as referenc
334334
const signedTx = await wallet.signTx(unsignedTx);
335335
const txHash = await wallet.submitTx(signedTx);
336336
```
337-
</Card>
337+
</Card>

0 commit comments

Comments
 (0)