plutus-tx-0.1.0.0: Libraries for Plutus Tx and its prelude

PlutusTx.Trace

Synopsis

# Documentation

trace :: BuiltinString -> a -> a Source #

Emit the given string as a trace message before evaluating the argument.

Log a message and then terminate the evaluation with an error.

Emit the given BuiltinString only if the argument evaluates to False.

Emit the given BuiltinString only if the argument evaluates to True.

Emit one of two BuiltinString depending on whether or not the argument evaluates to True or False.