From fdecf503bd9d80d1e499eece82bd53d791cf9fbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduard=20Bardaj=C3=AD=20Puig?= Date: Wed, 20 Nov 2024 13:56:35 +0000 Subject: [PATCH] Update schema --- .../types/stxMethods/signTransactions.ts | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/request/types/stxMethods/signTransactions.ts b/src/request/types/stxMethods/signTransactions.ts index 48828ce..c1300be 100644 --- a/src/request/types/stxMethods/signTransactions.ts +++ b/src/request/types/stxMethods/signTransactions.ts @@ -6,21 +6,19 @@ export const stxSignTransactionsParamsSchema = v.object({ /** * The transactions to sign as hex-encoded strings. */ - transactions: v.array( - v.object({ - transactionHex: v.string(), + transactions: v.array(v.string()), - /** - * Whether the transaction should be broadcast after signing. Defaults to `false`. - */ - broadcast: v.optional(v.boolean()), - }) - ), + /** + * Whether the signed transactions should be broadcast after signing. Defaults + * to `true`. + */ + broadcast: v.optional(v.boolean()), }); export type StxSignTransactionsParams = v.InferOutput; export const stxSignTransactionsResultSchema = v.object({ /** - * The signed transactions as hex-encoded strings. In the same order as the sign request. + * The signed transactions as hex-encoded strings, in the same order as in the + * sign request. */ transactions: v.array(v.string()), });