ton-connect / sdk

SDK for TON Connect 2.0 — a comprehensive communication protocol between wallets and apps in TON ecosystem
Apache License 2.0
330 stars 96 forks source link

@tonconnect/ui: Can't connect wallet after .disconnect() #175

Open moltea opened 5 months ago

moltea commented 5 months ago

Describe the bug

Can't reconnect wallet normally after tonConnectUI.disconnect(); (Works great in 2.0.2, doesn't work in latest)

Expected behavior

The wallet connects the first time and transactions are sent successfully.

Current behavior

After steps in "Steps to Reproduce" I get:

solid.js:894 Uncaught (in promise) Error: Unknown error
    at Wt (solid.js:894:10)
    at jt (solid.js:900:9)
    at solid.js:653:5
    at Lt (solid.js:623:18)
    at Ot (solid.js:725:7)
    at Pt (solid.js:823:36)
    at solid.js:792:34
    at Mt (solid.js:741:17)
    at solid.js:792:17
    at Mt (solid.js:742:5)

(tonConnectUI.wallet changes to real wallet, but modal doesn't close, events are not fired, and etc.) The wallet does not connect, the qr code remains. If I scan the qr code a second time, the wallet seems to be linked, but when I try to send the transaction via sendTransaction, it simply does not appear in the wallet (tonkeeper and etc).

Steps to Reproduce

Connected tonkeeper wallet (or any other available wallet) via connectWallet method Used tonConnectUI.disconnect(); Trying to connect wallet again, and scan the qr-code.

Environment

latest tonconnect/ui from unpkg OS: any Browser: any

Additional context

If i call connectWallet(), then i reload the page and call connectWallet() again, then everything will be fine, the wallet will be linked the first time and transactions will be sent.

nsake commented 4 months ago

The same thing

Cassiana5kerber commented 4 months ago

Queridos, estou iniciando essa nova fase evolutiva, e só sei o que me lembro, por enquanto... do comando do prompt doc. da tela escura do windons... então se alguem estiver disposto a me help segue meu whats.. +55 48 998298461. Agradecida.

Em quinta-feira, 25 de julho de 2024, Nikita Miniailo < @.***> escreveu:

The same thing

— Reply to this email directly, view it on GitHub https://github.com/ton-connect/sdk/issues/175#issuecomment-2250840441, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJ7ULKHFLGSYNVADPLKDEN3ZOEPSBAVCNFSM6AAAAABIZPXAXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJQHA2DANBUGE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

meri-maki commented 1 month ago

Looks like I have the same, because I have ton connect ui sdk errors, which I do not know how to handle but the qr code remains and I sometimes see Back to undefined in Wallet app