Unanswered
Expand the case of `commit()` phases?
According to the documentation, we find the commit()
FunC code described as follows:
Commits the current state of registers c4 (“persistent data”) and c5 (“actions”) so that
the current execution is considered “successful” with the saved values, even if an exception is thrown later.
https://docs.ton.org/develop/func/stdlib#commit
The description may be confusing. Here are some questions to clarify:
- What will we receive in terms of an exception or error if we have already committed the code to the smart contract?
- Why do we need to commit the data or status to the smart contract code even if it will result in an error in the end?
- What will be the consequence if the smart contract receives an "unknown error status"?
12K Views
0
Answers
one year ago
one year ago
Tags