Assert
This commit is contained in:
@@ -8,3 +8,9 @@ Causes the script to fail if the rawdata doesn't match the structure of datumtyp
|
||||
Otherwise, returns a value of SomeType
|
||||
|
||||
Primarily for validating input datums / redeemers.
|
||||
|
||||
You can unpack (1-match) data in the assertion
|
||||
|
||||
```gleam
|
||||
assert Some(x) = Option(Int)
|
||||
```
|
||||
Reference in New Issue
Block a user