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
});
Environment
stx_callContractDescription
When calling
stx_callContractwithsponsored: 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