Skip to content

Commit

Permalink
nitpick some headings, add a closing curly bracket in an code block
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliotFriend committed Jul 24, 2024
1 parent 7c2afad commit 9e017f4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/build/guides/conventions/stellar-asset-contract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ title: Integrate Stellar Assets Contracts
description: Test and use Stellar assets in a Soroban smart contract
---

When interacting with assets in a smart contract, the Stellar Asset Contract is not different from any other token that implements the Stellar [SEP-41 Token Interface]. The Rust SDK contains a pre-generated client for any contract that implements the token interface:
When interacting with assets in a smart contract, the Stellar Asset Contract is not different from any other token that implements the Stellar [SEP-41 Token Interface].

## Contract Code

The Rust SDK contains a pre-generated client for any contract that implements the token interface:

```rust
use soroban_sdk::{contract, contractimpl}
Expand Down Expand Up @@ -50,7 +54,7 @@ client.mint(...);

:::

### Testing
## Testing

Soroban Rust SDK provides an easy way to instantiate a Stellar Asset Contract tokens using `register_stellar_asset_contract`. This function can be seen as the deployment of a generic token. In the following example, we are following the best practices outlined in the [Issuing and Distribution Accounts section](../../../tokens/control-asset-access.mdx#issuing-and-distribution-accounts):

Expand Down Expand Up @@ -85,9 +89,10 @@ fn test() {
token_sac.mint(&issuer, &distributer, &genesis_amount);

assert_eq!(token.balance(&distributor), genesis_amount);
}
```

### Examples
## Examples

See the full examples that utilize the token contract in various ways for more details:

Expand Down

0 comments on commit 9e017f4

Please sign in to comment.