Guys, sorry for dumb questions.. but how to debug unexpected test failures?) Did func have something such as printf? My test failed on first check: throw_if(100, exit_code != 0); but how I can receive exit_code to figure out what happend?

Aug 6, 2022, 12:40 PM
nothing more than "dump_stack()"
Aug 6, 2022, 12:45 PM
I got #DEBUG#: stack(2 values) : 7 C{3AA53057A70DD9BA69D96D763CD5DE8EF2F65B88A879B04A02949D54AA4D75B9}
looks like no matter what I throw (added throw(10); in begin of method) but it still 7...
oh.. i see. Thank you for help)
Aug 6, 2022, 12:48 PM
there is dump() also
Aug 6, 2022, 1:26 PM
what is the error code 100 means?

Can't find in my Tact compiled TS file.
Jan 8, 2023, 4:46 AM
It's a custom error, that is raised by the smaart contract. Check docs/source of the smart contract.
I'm not sure about the Tact part. Maybe it's something internal to Tact.
Jan 8, 2023, 5:05 AM
Yes, it pop in FunC file that generated by my Tact file. Checking and try to understand what is that mean.
Jan 8, 2023, 5:06 AM

© 2024 Draquery.com All rights reserved.