Skip to content

[bug] The fee field is not respected when using stx_signTransaction #197

@vc0d35

Description

@vc0d35

Is there an existing issue for this?

  • I have searched the existing issues

SATS-CONNECT Version

3.0.1

Current Behavior

When using unsigned stx transfers, wallet opens a pop-up for the user to sign the transaction, but it doesn't respect the fee set by the developer.

Expected Behavior

Wallet would open the pop-up to sign a transaction with the fee set by the developer.

Steps To Reproduce

Create an unsigned token transfer transaction:

   const txOptions: UnsignedTokenTransferOptions = {
      network: Network,
      amount,
      recipient,
      fee,
      nonce,
      publicKey,
    };
    const serializedTx = serializeTransaction(
      await makeUnsignedSTXTokenTransfer(txOptions)
    );

    const signedTransaction = await xverseRequest("stx_signTransaction", {
      transaction: serializedTx,
      pubkey: publicKey,
    });

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

No response

Anything else?

Usign unsigned contract calls works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions