mlabs-haskell/seabug-onchain

Add non-negative checks

Closed this issue · 2 comments

Updating means we'll be dropping plutus-extra, as such we drop Naturals, in favor of Integers.
As such, any fields that were changed may need >0 checks onchain.

Proposed solution, simple Integer newtype that has an explicit FromData, which checks >=0

Need not be as complex as plutus-extra, no need for QQ for example, just an enum instance that'll error, and the Data instances