These functions are used to get the inner value of a `some` or `ok`. `unwrap!` returns an error on failure, while `unwrap-panic` terminates the transaction.
clarity (let ((val (unwrap! (some u10) (err u404)))) val)
Unpacking Optionals and Responses.
These functions are used to get the inner value of a `some` or `ok`. `unwrap!` returns an error on failure, while `unwrap-panic` terminates the transaction.
clarity (let ((val (unwrap! (some u10) (err u404)))) val)
1. What does unwrap-panic do on a 'none' value?