I'm trying to compile the week 1 code on plutus playground hosted locally, but I'm getting this error:
error:
Not in scope: type constructor or class ‘PaymentPubKeyHash’
|
57 | { aSeller :: !PaymentPubKeyHash
|
^^^^^^^^^^^^^^^^^
This is the code that originates the compilation error:
data Auction = Auction
{ aSeller :: !PaymentPubKeyHash
, aDeadline :: !POSIXTime
, aMinBid :: !Integer
, aCurrency :: !CurrencySymbol
, aToken :: !TokenName
} deriving (P.Show, Generic, ToJSON, FromJSON, ToSchema)
I have followed the steps on the week1 videos, but I'm getting this error, any help is welcomed. Thank you.
cabal update
in the week1 code folder and the code compiled. Thank you.plutus
repository notplutus-apps