I'm using tonconnect/ui-react in my telegram web app, and I can successfully connect to my wallet but when I try to make a purchase using my another wallet I get error on my wallet apps.
For example when I want to send to my tonkeeper wallet address I get "an error occured", in telegram wallet I get unable to verify transaction. I tried with both, testnet and main, both are the same.
What I'm doing wrong?
await tonConnectUI.sendTransaction({
network: tonConnectUI.wallet?.account.chain,
validUntil: validUntil.getTime(),
messages: [
{
amount: event.price * 1_000_000_000 + "",
address: // passing wallet which should receive the payment
},
],
});
Nov 28, 2023, 3:05 PM
Changed both, still same error,
also from tonconnect sdk the type of amount is string
https://github.com/ton-connect/sdk/blob/a05bc3a1662d0a2622398ae883344fb817018b53/packages/sdk/src/models/methods/send-transaction/send-transaction-request.ts#L31
also from tonconnect sdk the type of amount is string
https://github.com/ton-connect/sdk/blob/a05bc3a1662d0a2622398ae883344fb817018b53/packages/sdk/src/models/methods/send-transaction/send-transaction-request.ts#L31
Nov 28, 2023, 3:24 PM