Open Alnevis opened 3 months ago
Why skipRedirectToWallet doesnt skip redirect?
Skip redirect to wallet
No response
tonConnectUI.uiOptions = { actionsConfiguration: { skipRedirectToWallet: 'always' } }; export async function launchSmartContract(amount) { const transaction = { messages: [ { address: "**", // destination address amount: toNano(String(amount)).toString() // Toncoin in nanotons },
], }; try { const result = await tonConnectUI.sendTransaction(transaction); } catch (error) { console.error("Error sending transaction:", error); }
}
document.getElementById('ton-connect').onclick = connectToWallet; window.launchSmartContract = launchSmartContract;
Your Question
Why skipRedirectToWallet doesnt skip redirect?
Context
Skip redirect to wallet
What have you tried so far?
No response
Relevant Code or Commands
tonConnectUI.uiOptions = { actionsConfiguration: {
skipRedirectToWallet: 'always' } }; export async function launchSmartContract(amount) {
const transaction = { messages: [ { address: "**", // destination address amount: toNano(String(amount)).toString() // Toncoin in nanotons },
}
document.getElementById('ton-connect').onclick = connectToWallet; window.launchSmartContract = launchSmartContract;
Documentation Check