Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Latest commit

 

History

History
8 lines (6 loc) · 334 Bytes

Raising errors.md

File metadata and controls

8 lines (6 loc) · 334 Bytes

Raising errors

In PlutusTx, you'd signal validation failure with the error function. You can do the same in Plutarch using perror.

fails :: Term s (PData :--> PData :--> PData :--> PUnit)
fails = plam $ \_ _ _ -> perror