Transactions and subscripts

Matteo
Wed, 17 May 2023 16:10:45 +0000
Questions

Hello,

so far I have used the new transaction script steps only without subscripts and I really like how they work. When using a single script, an error makes the script go automatically to the end of the transaction and it is reverted. I do not have to check for errors after each step.

Today I wanted to use a subscript within an open transaction and I am not so happy.
In a subscript I have to report the errors to the calling script, which can then revert the transaction.

Am I right that this means that in subscripts I have to check for errors after each step (and in case of an error exit the script with a result)?

3 posts - 2 participants

Read full topic