sdk icon indicating copy to clipboard operation
sdk copied to clipboard

UI-REACT: Tonkeeper Mobile faulty transaction

Open GeorgeMA-Strong opened this issue 1 year ago • 5 comments

Describe the bug

Hi. I’m making app with TON Ceonnect integration and during sending a transaction from Tonkeeper mobile there is a bug: It’s sending bouncing transaction so TON is going back to the sender. On Telegram Wallet and Tonkeeper desktop is working fine (it’s sending normal transaction). Code to reproduce it: import { Address, beginCell, toNano } from '@ton/core’;

const handleSendTransactionTonConnect = () => {
      const body = beginCell()
        .storeUint(0, 32)
        .storeStringTail(UUID)
        .endCell();
      const paymentRequest: SendTransactionRequest = {
        messages: [
          {
            address: Address.parse(walletAddress).toRawString(),
            amount: toNano(amount).toString(),
            payload: body.toBoc().toString('base64'),
          },
        ],
        validUntil: Math.floor(Date.now() / 1000) + 3600,
      };
      tonConnectUI
        .sendTransaction(paymentRequest)
}

Telegram Wallet and Tonkeeper Desktop is working fine: image image

BUT for Tonkeeper mobile its working incorrectly: image

I suspect Ton Connect can produce wrong link to Tonkeeper mobile which making transaction faulty. This is example of real faulty transaction from Tonkeeper Mobile: https://tonviewer.com/transaction/2cc989bfe3f131560e01ab9b5884e0677903b5ef67693abb2aa8c38cf40eb647

Expected behavior

Transaction is not bouncing back.

Current behavior

Transaction on Tonkeeper Mobile is being faulty during creation.

Steps to Reproduce

  1. Connect Tonkeeper Mobile
  2. Run transaction code I pasted above
  3. Proceed to Tonleeper app for transaction approve
  4. You will se such behaviour

Environment

/app └─┬ @tonconnect/[email protected] └─┬ @tonconnect/[email protected] └─┬ @tonconnect/[email protected] ├── @tonconnect/[email protected] ├── @tonconnect/[email protected] └── @tonconnect/[email protected]

Additional context

No response

GeorgeMA-Strong avatar Oct 31 '24 14:10 GeorgeMA-Strong

I have the same problem

tinh-wolffun avatar Nov 01 '24 03:11 tinh-wolffun

I have the same problem

I also wrote to the tonkeeper support in case it's a problem from their side but no reply from them

GeorgeMA-Strong avatar Nov 01 '24 17:11 GeorgeMA-Strong

I am also having this issue, it seems to work fine on desktop Tonkeeper but if I try on mobile it shows sent and then received instantly bouncing.

What's interesting is that that isn't the case for all wallets. I am trying to send to a relatively new wallet and I get this issue, but if I change the recipient wallet to an older wallet that has a lot of transactions it seems to process as expected.

I don't know what the difference is, they're both v4R2, both have TON in the wallet and have received TON successfully via other methods.

@GeorgeMA-Strong @tinh-wolffun did you get anywhere with this?

Dayjo avatar Nov 16 '24 23:11 Dayjo

Ok, I was able to resolve this (it helped to type out my issue above :D). I just needed to send some TON from the recipient wallet which 'initialised' the wallet;

Dayjo avatar Nov 17 '24 00:11 Dayjo