Skip to content

Commit

Permalink
Update docs (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
aryzing authored Nov 27, 2024
1 parent b6fc100 commit 55c1e12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/request/types/stxMethods/callContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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())),
Expand Down

0 comments on commit 55c1e12

Please sign in to comment.