From ca4db45a24e0506673be4054a09018dc3254317f Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Wed, 8 Jan 2025 14:23:18 +0000 Subject: [PATCH] docs: updated references of interfaces (#3563) * docs: updated references of interfaces * chore: incorrect link * Update apps/docs/src/guide/contracts/managing-deployed-contracts.md Co-authored-by: Daniel Bate --------- Co-authored-by: Daniel Bate --- apps/docs-api/index.md | 1 - apps/docs/src/guide/contracts/managing-deployed-contracts.md | 2 +- apps/docs/src/guide/contracts/minted-token-asset-id.md | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/docs-api/index.md b/apps/docs-api/index.md index 6c796e4769d..9e9f1c5e6bc 100644 --- a/apps/docs-api/index.md +++ b/apps/docs-api/index.md @@ -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) diff --git a/apps/docs/src/guide/contracts/managing-deployed-contracts.md b/apps/docs/src/guide/contracts/managing-deployed-contracts.md index e37e56b47b7..4be51241b5c 100644 --- a/apps/docs/src/guide/contracts/managing-deployed-contracts.md +++ b/apps/docs/src/guide/contracts/managing-deployed-contracts.md @@ -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: diff --git a/apps/docs/src/guide/contracts/minted-token-asset-id.md b/apps/docs/src/guide/contracts/minted-token-asset-id.md index 29d09589779..d8bd72cc0ba 100644 --- a/apps/docs/src/guide/contracts/minted-token-asset-id.md +++ b/apps/docs/src/guide/contracts/minted-token-asset-id.md @@ -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}