Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 487 Bytes

Raising errors.md

File metadata and controls

20 lines (15 loc) · 487 Bytes
imports

module Plutarch.Docs.RaiseErrs (fails) where 
import Plutarch.Prelude

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