Plutonomicon / plutarch-plutus

Typed eDSL for writing UPLC /ˈpluː.tɑːk/
MIT License
123 stars 64 forks source link

Better generator for mint Values (and fix ledger types to match) #695

Open kozross opened 3 months ago

kozross commented 3 months ago

In V1 and V2, the Value used in a mint field of a TxInfo must contain a zero Ada value, and any other currencies it contains should be positive. In V3, this changed: now the zero Ada entry is implicit. Our generators currently don't take account of this, and the V3 ledger equivalent is technically less strict than it could be due to this: it currently assumes NoGuarantees, but it could assume Positive.