From f7904706efd4674418e0754bcf7d50c8edfe6f3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduard=20Bardaj=C3=AD=20Puig?= Date: Tue, 12 Aug 2025 12:53:25 +0100 Subject: [PATCH] fix: outdated docs --- packages/transactions/README.md | 4 ++-- packages/transactions/src/clarity/clarityValue.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/transactions/README.md b/packages/transactions/README.md index 5ea2e2fd5..21d532043 100644 --- a/packages/transactions/README.md +++ b/packages/transactions/README.md @@ -263,7 +263,7 @@ const serializedSignedTx = deserializedTx.serialize(); Read-only contract functions can be called without generating or broadcasting a transaction. Instead it works via a direct API call to a Stacks node. ```typescript -import { bufferCVFromString, callReadOnlyFunction } from '@stacks/transactions'; +import { bufferCVFromString, fetchCallReadOnlyFunction } from '@stacks/transactions'; import { StacksTestnet } from '@stacks/network'; const contractAddress = 'ST3KC0MTNW34S1ZXD36JYKFD3JJMWA01M55DSJ4JE'; @@ -282,7 +282,7 @@ const options = { senderAddress, }; -const result = await callReadOnlyFunction(options); +const result = await fetchCallReadOnlyFunction(options); ``` ## Constructing Clarity Values diff --git a/packages/transactions/src/clarity/clarityValue.ts b/packages/transactions/src/clarity/clarityValue.ts index 3c9ffefce..03fc87637 100644 --- a/packages/transactions/src/clarity/clarityValue.ts +++ b/packages/transactions/src/clarity/clarityValue.ts @@ -193,7 +193,7 @@ type ClarityTypetoValue = { * @example * ```ts * // some functions can return a generic `ClarityValue` type - * let value = callReadOnlyFunction(); + * let value = fetchCallReadOnlyFunction(); * // ^ ClarityValue * // use `isClarityType` to narrow down the type * assert(isClarityType(value, ClarityType.Int))