From 55c1e12594483dba301e787c0fa583646fdda9b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduard=20Bardaj=C3=AD=20Puig?= Date: Wed, 27 Nov 2024 13:07:17 +0000 Subject: [PATCH] Update docs (#51) --- package.json | 2 +- src/request/types/stxMethods/callContract.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0392453..1c6bfff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sats-connect/core", - "version": "0.4.1", + "version": "0.4.2", "main": "dist/index.mjs", "module": "dist/index.mjs", "types": "dist/index.d.mts", diff --git a/src/request/types/stxMethods/callContract.ts b/src/request/types/stxMethods/callContract.ts index bd45558..fa034a9 100644 --- a/src/request/types/stxMethods/callContract.ts +++ b/src/request/types/stxMethods/callContract.ts @@ -23,14 +23,14 @@ export const stxCallContractParamsSchema = v.object({ * The function's arguments. The arguments are expected to be hex-encoded * strings of Clarity values. * - * To convert Clarity values to their hex representation, the `cvToString` + * To convert Clarity values to their hex representation, the `cvToHex` * helper from the `@stacks/transactions` package may be helpful. * * ```js - * import { cvToString } from '@stacks/transactions'; + * import { cvToHex } from '@stacks/transactions'; * * const functionArgs = [someClarityValue1, someClarityValue2]; - * const hexArgs = functionArgs.map(cvToString); + * const hexArgs = functionArgs.map(cvToHex); * ``` */ arguments: v.optional(v.array(v.string())),