Hello everyone. For a long time I've been trying to do a simple task, parse a comment from an incoming transaction. I've tried a lot of options, but nothing helps. Can someone look at the code and tell me what I'm doing wrong? (one-character comment).
Jan 4, 2023, 12:23 PM
Have you passed enough TON with message comment of which you are parsing?
If so, could you share contract address?
Jan 4, 2023, 12:39 PM
Yes, i send message via https://wallet.ton.org/?testnet=true
kQAi5dn7BLgzMgYc0e8PUWZm0aOqV6iRtDUP7kXINiEIX6Xf
Address from testnet
Address from testnet
Jan 4, 2023, 12:41 PM
Looks like you haven't given enough gas:
https://testnet.ton.cx/tx/7428066000003:ghDXPkZQfcXdcCBuZMMem0c36j2NyUCeIVHLtgcPwzs=:EQAi5dn7BLgzMgYc0e8PUWZm0aOqV6iRtDUP7kXINiEIXx5V
https://testnet.ton.cx/tx/7428066000003:ghDXPkZQfcXdcCBuZMMem0c36j2NyUCeIVHLtgcPwzs=:EQAi5dn7BLgzMgYc0e8PUWZm0aOqV6iRtDUP7kXINiEIXx5V
Jan 4, 2023, 12:56 PM
Yes, you are right!
I have now re-sent the message to this address. this time it is successful, but the result is zero again
I have now re-sent the message to this address. this time it is successful, but the result is zero again
https://testnet.ton.cx/tx/7430075000001:h7UpKda4SOEzp/LwaVgq82ZcUdCyQl3yieOZWgBllDg=:EQDdiwDghvwiTg6eveMv35CUTpxu2YlYNOSPOuvXZ7sXZFPX
Jan 4, 2023, 1:06 PM
Please send at least 0.1 TON on testnet and then send the result. I still think it's related to gas.
Jan 4, 2023, 1:15 PM
I did it... the result is the same
Jan 4, 2023, 1:22 PM
This is the last 2 transactions. I don't know why but when you sent 0.1, it looks like that you didn't include any comment, but then when you send a few nano tons, it had a comment (3).
When you had no comment, your code throw an exception, which is correct behaviour based on your code.
Jan 4, 2023, 1:25 PM
Success! Very difficult debugging! Thank you very much!
Jan 4, 2023, 1:35 PM