You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating a transaction hex (txHex) using makeUnsignedContractCall from @stacks/transactions and sending it to Leather Wallet for signing, we encounter two distinct issues depending on the library version:
Version 7.0.4 (latest at the time): The Leather popup opens but displays "DeserializationError: Cannot recognize Clarity Type: 48", and the "Confirm" button is not clickable.
Version 6.13.0: The popup opens, but signing fails with a generic error { "jsonrpc": "2.0", "id": "...", "error": {} }, and no specific error message is provided.
This prevents users from confirming and signing the transaction in a presale widget.
For the latest breaking release these have moved to string literal types. e.g. { type: 'uint', value: "10" }
For and easier way of correctly constructing Clarity values I would recommend using the Cl. helper bundle of @stacks/transactions e.g. Cl.uint(10)
Description
When generating a transaction hex (
txHex
) usingmakeUnsignedContractCall
from@stacks/transactions
and sending it to Leather Wallet for signing, we encounter two distinct issues depending on the library version:{ "jsonrpc": "2.0", "id": "...", "error": {} }
, and no specific error message is provided.This prevents users from confirming and signing the transaction in a presale widget.
Steps to Reproduce
@stacks/[email protected]
(or@stacks/[email protected]
).makeUnsignedContractCall
using these options:The text was updated successfully, but these errors were encountered: