I have a code that compiles and runs well in the Plutus playground, but when I try to run cabal build I get an error when calling mkTypedValidator:
offerValidator :: Scripts.TypedValidator Offer
offerValidator = Scripts.mkTypedValidator @Offer
$$(PlutusTx.compile [|| validateOffer ||])
$$(PlutusTx.compile [|| wrap ||]) where
wrap = Scripts.wrapValidator @OfferData @OfferAction
- using ghc version ghc-8.10.7
- cabal version 3.6.0
Any ideas what might be happening? Not very experienced with cabal/plutus yet.
Also already tried cabal update
but looks like everything is up-to-date.