scalus.cardano.onchain.plutus.v2.TxOut
See theTxOut companion class
object TxOut
Attributes
Members list
Type members
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Givens
Givens
Extensions
Extensions
extension (self: TxOut)
Checks that this output carries a as an inline datum.
Checks that this output carries a as an inline datum.
Compares the whole OutputDatum with ===, one equalsData around one constrData. Measured at 286 lovelace against 461 for datum.inlineOrFail[A](msg) === a, which takes the OutputDatum apart and then rewraps the decoded value before comparing. Use datum.inlineOrFail when the datum's fields are needed; use this when only its equality is.
Attributes
- Example
-
require(output.hasInlineDatum(expectedDatum), "datum mismatch")
In this article