3
votes
Accepted
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 (https://github.com/input-...
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 ...
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... }
...
Only top scored, non community-wiki answers of a minimum length are eligible