Skip to content

Commit

Permalink
docs: updated references of interfaces (#3563)
Browse files Browse the repository at this point in the history
* docs: updated references of interfaces

* chore: incorrect link

* Update apps/docs/src/guide/contracts/managing-deployed-contracts.md

Co-authored-by: Daniel Bate <[email protected]>

---------

Co-authored-by: Daniel Bate <[email protected]>
  • Loading branch information
petertonysmith94 and danielbate authored Jan 8, 2025
1 parent 0b4c3ab commit ca4db45
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion apps/docs-api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
- [crypto](https://fuels-ts-docs-api.vercel.app/modules/_fuel_ts_crypto.html)
- [errors](https://fuels-ts-docs-api.vercel.app/modules/_fuel_ts_errors.html)
- [hasher](https://fuels-ts-docs-api.vercel.app/modules/_fuel_ts_hasher.html)
- [interfaces](https://fuels-ts-docs-api.vercel.app/modules/_fuel_ts_interfaces.html)
- [math](https://fuels-ts-docs-api.vercel.app/modules/_fuel_ts_math.html)
- [program](https://fuels-ts-docs-api.vercel.app/modules/_fuel_ts_program.html)
- [script](https://fuels-ts-docs-api.vercel.app/modules/_fuel_ts_script.html)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ To interact with a deployed contract using the SDK without redeploying it, you o

The `contractId` property from the [`Contract`](https://fuels-ts-docs-api.vercel.app/classes/_fuel_ts_program.Contract.html) class is an instance of the [`Address`](https://fuels-ts-docs-api.vercel.app/classes/_fuel_ts_address.Address.html) class.

The [`Address`](https://fuels-ts-docs-api.vercel.app/classes/_fuel_ts_address.Address.html) class wraps all methods from the [`AbstractAddress`](https://fuels-ts-docs-api.vercel.app/classes/_fuel_ts_interfaces.AbstractAddress.html) class and adds a single property: `b256Address`. This property is a string encoded in [`B256`](../types/bits256.md) format.
The [`Address`](https://fuels-ts-docs-api.vercel.app/classes/_fuel_ts_address.Address.html) class also provides a set of utility functions for easy manipulation and conversion between address formats along with one property; `b256Address`, which is a string encoded in [`B256`](../types/bits256.md) format.

When you log the `contractId` property of an instantiated Contract using `console.log`, the output appears as follows:

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/guide/contracts/minted-token-asset-id.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Since the asset ID depends on the contract ID, which is always dynamic (unlike t

## Create Asset Id

The SDK provides a helper named `createAssetId` which takes the contract ID and sub ID as parameters. This helper internally calls `getMintedAssetId` and returns the Sway native parameter [AssetId](https://fuels-ts-docs-api.vercel.app/types/_fuel_ts_interfaces.AssetId.html), ready to be used in a Sway program invocation:
The SDK provides a helper named `createAssetId` which takes the contract ID and sub ID as parameters. This helper internally calls `getMintedAssetId` and returns the Sway native parameter [AssetId](https://fuels-ts-docs-api.vercel.app/types/_fuel_ts_address.AssetId.html), ready to be used in a Sway program invocation:

<<< @./snippets/utilities/create-asset-id.ts#create-asset-id-1{ts:line-numbers}

0 comments on commit ca4db45

Please sign in to comment.