I am making a tx to a contract using ton-connect transactions
how can I add additional comments to the tx so that it is also visible on the explorer?
anybody has any idea about that?

I tried storing a slice on the message body but that doesn't work

Sep 21, 2023, 12:49 PM
begin the body with 32 zero-bits and then the comment as UTF-8 string.

also if I remember correctly, in TON Connect you can simply pass a string to the body parameter instead of a cell.
https://docs.ton.org/develop/smart-contracts/guidelines/internal-messages#simple-message-with-comment
Sep 21, 2023, 12:56 PM
But I also have extra information in the tx,
I have to make a certain op code tx
if I have 32 zerobits it would converts the op to 0
Sep 21, 2023, 12:58 PM
then why do you need some comment in it if it's a service message to the contract?
you can also try changing the logic of the contract to handle these text comments instead of opcodes, but it's not recommended way.
Sep 21, 2023, 12:59 PM
it would nice to see a comment on the explorer as well
not required for the logical part
Sep 21, 2023, 12:59 PM

© 2024 Draquery.com All rights reserved.