Thanks to visit codestin.com
Credit goes to github.com

Skip to content

stx_callContract request not recognized as sponsored transaction #1716

@ronoel

Description

@ronoel

Environment

  • Wallet: Leather v2.76.0 (Mobile App)
  • Browser Extension: Leather v6.76.0 (Working as expected)
  • Method: stx_callContract
  • Context: attempting a sponsored transaction

Description

When calling stx_callContract with sponsored: true, the Leather mobile app (v2.76.0) does not recognize or handle the transaction as sponsored.
However, the Leather browser extension (v6.76.0) executes the exact same code correctly, recognizing it as a sponsored transaction.

The mobile app instead proceeds as if it were a regular transaction, still prompting the user for fee confirmation instead of using sponsor parameters.


Code snippet to reproduce

const response = await request( 'stx_callContract', {
  contract: `${this.contractAddress}.${this.contractName}`,
  functionName: functionName,
  functionArgs: hexEncodedArgs,
  network: environment.network,
  postConditionMode: postConditionModeName,
  postConditions: postConditions,
  sponsored: true, // Indicate that this is a sponsored transaction
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions