ton-blockchain / multisig-contract-v2

Multiowner wallet
54 stars 19 forks source link

Update order.func #14

Closed isopen closed 6 months ago

isopen commented 6 months ago

Note that exception parameter can be of any type (possibly different in case of different exceptions) and thus funC can not predict it on compile time. That means that developer need to "help" compiler by casting exception parameter to some type (see Example 2 below): https://docs.ton.org/develop/func/statements#try-catch-statements

EmelyanenkoK commented 6 months ago

While exception parameter (first parameter in catch(), _ in this case) is indeed may be of arbitrary type and need to be manually casted, exit_code is always int.