Skip to main content
3 votes

UnsafeFromData instance for custom type

In order to programmatically generate "FromData" and "ToData" instances for custom data types we have the function unstableMakeIsData present in PlutusTx (
Nikhil Shetty's user avatar
1 vote

Plutus BuiltinData vs. Data

A type corresponding to the Plutus Core builtin equivalent of Data. The point of this type is to be an opaque equivalent of Data, so as to ensure that it is only used in ways that the compiler can ...
Fermat's user avatar
  • 1,892
1 vote

Using custom datum for `mustPayToOtherScript` in off-chain code

As far as I know your datum types are required to conform the Data type. Try: PlutusTx.makeIsDataIndexed ''RandomDatum [ ('RandomDatum, 0) ] {...} let randomDatum = RandomDatum { ...params... } ...
Will's user avatar
  • 1,162

Only top scored, non community-wiki answers of a minimum length are eligible