I want to do Integer pattern matching on-chain but always get an error:
GHC Core to PLC plugin: E042:Error: Unsupported feature: Use of Haskell Integer equality, possibly via the Haskell Eq typeclass Context: Compiling expr...
It seems to relate to this piece of code:
checkMint :: Integer -> Bool checkMint (1) = True checkMint (-1) = True checkMint _ = False
It seems that it uses the Prelude Integer equality operator instead of
PlutusTx.Prelude. But how can I change that instead of rewriting the function and make it us
PlutusTx.Prelude (==) instead?