Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skipRedirectToWallet #234

Open
1 task done
Alnevis opened this issue Aug 13, 2024 · 0 comments
Open
1 task done

skipRedirectToWallet #234

Alnevis opened this issue Aug 13, 2024 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@Alnevis
Copy link

Alnevis commented Aug 13, 2024

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
},

    ],
   
};

try {
  
    const result = await tonConnectUI.sendTransaction(transaction);

} catch (error) {
    console.error("Error sending transaction:", error);
}

}

document.getElementById('ton-connect').onclick = connectToWallet;
window.launchSmartContract = launchSmartContract;

Documentation Check

  • Yes, I have checked the documentation.
@Alnevis Alnevis added the question Further information is requested label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants